在线视频国产欧美另类,偷拍亚洲一区一区二区三区,日韩中文字幕在线视频,日本精品久久久久中文字幕

<small id="qpqhz"></small>
  • <legend id="qpqhz"></legend>

      <td id="qpqhz"><strong id="qpqhz"></strong></td>
      <small id="qpqhz"><menuitem id="qpqhz"></menuitem></small>
    1. SPA個人總結(jié)

      時間:2021-06-10 20:06:21 總結(jié) 我要投稿

      SPA個人總結(jié)范文

        SPA個人總結(jié)范文

      SPA個人總結(jié)范文

        SPA個人總結(jié)2010-12-10 13:201.Dijkstra

        單源,帶權(quán)有向圖,不能有負權(quán)回路,也不能有負權(quán)邊,復(fù)雜度為O(n^2),貪心思想(每次選出一個最小路徑節(jié)點,并用此來relax別的尚未選出的節(jié)點),具體如下所述:

        Dijkstra(G,w,s)

        (1).initialize array dto be the distance between sand other verticle,declare bool array used to flag if the verticle is chosen out,and used is to be false at first,except used[s]=1.

        (2).for each verticle in the graph choose the shortest verticle v(edge)in array d

        used[v]=1;

        with vto relax other verticle which hasn't been'used'in the graph//here is aprocess of loop 2.Bellman-Ford

        單源,帶權(quán)有向圖,可以存在負權(quán)回路(算法能給找出來,如果有的話),復(fù)雜度為O(ne),其想法如下:

        其實就是對每條邊進行|V|-1次Relax操作,然后在此基礎(chǔ)上檢查是否是存在負權(quán)回路,SPA個人總結(jié)。

        for ifrom 1to v-1//求最小過程

        for each edge(u,v)in the graph relax(u,v,w)

        for each edge(u,v)in the graph//這就是檢查是否存在負權(quán)回路,工作總結(jié)《SPA個人總結(jié)》。

        do if(d[v]d[u]+w)

        return false return true 3.SPFA:shortest path faster algorithm

        單源,帶權(quán)有向圖,復(fù)雜度O(2e),用top排序確定是否存在負權(quán)回路,不存在時(即允許負權(quán)邊,不允許負權(quán)回路),其想法如下(逐漸松弛的思想,若v松弛有效,則將其讓入隊列,以松弛別的'節(jié)點):

        SPFA(G,w,s)

        (1).initialize array dto be the distance between sand other verticle

        (2).declare queue qto contain verticle,and first initialize it with s.

        (3).while qis not empty pop the first element of qto u

        for each vbelongs adj[u]

        tmp=d[v]

        relax(u,v,w)

        check if(d[v]!=tmp&&v is not in q)

        push vinto q

        4.Floyd-Warshall

        計算圖中任意點到任意點之間的距離,是一種dp方案,復(fù)雜度為O(n^3),允許負權(quán)邊存在,但是不允許負權(quán)路徑存在,其想法如下:

        設(shè)圖G中的頂點為V={1,2,.,n},對于任一對頂點(i,j)belongs to V,考查從i到j(luò)并且中間節(jié)點均屬于節(jié)點子集合{1,2.k}的所有路徑,設(shè)其中p為一個最小權(quán)值路徑(設(shè)p是簡單的)。Floyd-Warshall算法利用的便是路徑p與i到j(luò)之間的最短路徑(由于路徑p上的節(jié)點集合均屬于{1,2,.,k})之間的聯(lián)系。這一聯(lián)系依賴于k是否是路徑p上的中間節(jié)點。

        (1)節(jié)點k(k是i到j(luò)之間路徑的節(jié)點子集合里的最大編號節(jié)點)在路徑p上,則d[i][j]=d[i][k]+d[k][j],其中i到k屬于路徑p1,k到j(luò)屬于路徑p2。

        (2)節(jié)點k(k是i到j(luò)之間路徑的節(jié)點子集合里的最大編號節(jié)點)不在路徑p上,則往下考慮最大編號節(jié)點k-1。

        當然這里的初始條件d[i][j]=w(i,j)when k=0.

      【SPA個人總結(jié)】相關(guān)文章:

      心靈Spa For Mind美文隨筆06-29

      SPA員工辭職報告02-27

      某SPA健身會開業(yè)慶典的策劃方案07-07

      身體SPA護膚系列廣告詞有哪些06-12

      半年個人總結(jié)_個人總結(jié)03-15

      個人研修總結(jié)個人總結(jié)03-16

      個人總結(jié):美術(shù)教師個人總結(jié)06-11

      員工年終個人總結(jié)_個人總結(jié)03-16

      個人學習總結(jié)_個人總結(jié)03-15