2023年全國碩士研究生考試考研英語一試題真題(含答案詳解+作文范文)_第1頁
已閱讀1頁,還剩31頁未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

1、A simple Test For the Consecutive Ones Property,Without PC-trees!,Consecutive 1’s Property of matrices,Given a (0,1)- matrix M, does there exist a PERMUTATION of the COLUMINS of M such that the 1’s in the ROWS are consec

2、utive? 1 2 3 4 1 1 0 0 1 0 0 1 0 1 1 0,,,,,3 2 1 40 1 1 00 0 1 11 1 0 0,,Consecutive requirement on the rows,Each row i of M can be

3、viewed as a requirement that those columns with a 1 in row j must be consecutive.Booth and Lueker ﹝1976﹞ showed that the consecutive ones property can be tested using P-Q trees in linear time.They process the consecu

4、tive requirement in a row by row fashion.,P-Q Trees,Two types of internal nodes: P-nodes & Q-nodesChildren of a P-node can be “permuted arbitrarily”Children of a Q-node can only be “reversed” Q,,

5、,,,,,,,,,,P,1,2,3,4,L(T) = { all permutations generated by T },In the example, L(T) = { 1234,1243,4321,3421 },Intermediate On-Line Operations,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,…,…,…,…,…,…,,,,,,,,,,…,…,,,,,…,,,,,…,,,S

6、trictly Overlapping Relationships,Two columns are say, to overlap strictly if they overlap but none is contained in the other. Such a pair of rows implies the following column partition: 1 - - - - -

7、 - 1 1 - - - 1 1 - - - - 1,,,u,v,,,,,,V\u,V∩u,u\V,Ideal Situation,If there is a vertex ordering v1 , v2 ,…,vm such that each vi strictly overlaps with some vj with j <i, then it is trivial to test the conse

8、cutive ones propertyPartition Before 1- - - - - - 1 1 - - - 1 1 - - - - 1 After 1 - - - 1 1 - - 1 1 - - 1 1 - - - 1 1 - - - - 1,,,,,,,,,,The General Case (I),Define the graph G o

9、n the set of rows whose edge set consists of those strictly overlapping pairs of columns.Each connected component of G satisfies the above “ideal situation”.The corresponding submatrices are called prime The matrix sa

10、tisfies the COP iff each of its prime submatrices does,,,,,,An example of the Graph G,,,,,,,,,,,,,1,2,3,4,5,6,7,8,9,10,1,,,,,,,6,4,3,7,9,8,10,5,2,,,,,,,,,,,The General Case (II),However, we cannot afford to compute all t

11、he edges in G, which could take O(r2 ) time.We shall compute a subset of edges that contain a spanning tree of each connected component. Note that the process of obtaining the component actually decompose the matrix in

12、to prime submatrices,An Efficiency Note,The # of strictly adjacent pairs is |A| |B| . Let a, b bethe least indexed rows in A,B, respectively. To connect A,B, it suffices to make a adjacent to all rows in B and b adjacen

13、t to all rows in A.,,,,,,,,,A,B,,,a,b,An Efficiency Note,The # of strictly adjacent pairs is |A| |B| . Let a, b bethe least indexed rows in A,B, respectively. To connect A,B, it suffices to make a adjacent to all rows i

14、n B and b adjacent to all rows in A.,,,,,,,,,A,B,,,a,b,Representative Rows vA and vB,,,,,,,,,,,,,,,,,,,,,,v,v,,,,,1/2,1/2,1 1 1 1 1 1 1 1 1 1 1 11 1 1 1 1 1,

15、,Let v be adjacent to both A and B. But, vA and vB are forbidden to be made adjacent to A,B,vA,vB,vA,vB,vB,vA,Classifying the neighbors of a row u,,,,,,,,u,B,D,C,,,,,A,Append A(u),B(u) and D(u) to PT(u).Append uD to PT(

16、w) for all w in C(u) whose index is smaller than Ind(uD)Delete the row u and use an artificial column [u] to replace the region covered by columns of uAdd edges from u to nodes of PT(u)-FB(u),,Lemma 1,If uj ? FB(ui)∪PT

17、(ui), i<j, ui and uj are connected in G’,Lemma 2,If one of the ui and uj (i<j) is contained in the other and the containment is changed before iteraion i, ui and uj are connected in G’.,,,,,,,,0.5,,,ui,ui,uj,uj,[uk

18、],uk,,0,The sub-graph G’ generated by the algorithm,G’ is a spanning sub-graph of G(M) with the same components.Claim 1. G’ is a subgraph of G(M). If(ui,uj) G(M), (ui,uj) G’Claim 2. if(ui, uj) G(M), th

19、en ui and uj belong to the same component of G(M),Claim 1,G’ is a subgraph of G(M),,,,,,,,,,ukB,,ukA,uk,[uk],0.5,0.5,,In this case, ui is in FB(uj) and uj is in FB(ui),1. ui and uj are independent originally.,2. ui is

20、contained in uj originally. (Lemma 2),Claim 2,If(ui, uj) ? E(G(M)), then ui and uj belong to the same component of G’. Let ui,uj be the minimal bad pair. (for all other bad pair (up,uq) either i<p or j<q)Conside

21、r the changing of intersection relationship“intersect” to “contain” (case 1)“intersect” to “independent” (case 2),Case 1 :“intersect” to “contain”,ui and uj intersect originally. Let one of the ui and uj be contained i

22、n the other after iteration k. Consider the following two subcases:Case 1.1: Both ui and uj overlap uk.Case 1.2: Only one of the ui and uj (say, z) overlaps uk ( The other is named eA),Case 1.1 Both ui and

23、 uj overlap uk,,,,,,,,,,,,uk,uk,ui is connected to uj through uk,ui,ui,uj,uj,Case 1.2 one of ui and uj (say, z) overlaps uk,,,,,,,,,,,z,eA,,z,eA,uk,,,,,,z,eA,,ukA,uk is connected to z and ukA. We shall verify if ukA is

24、 connected to eA.,uk,Case 1.2 Only one of the ui and uj (said) z overlaps uk,Case (i) uka is contained in eA originallyBy lemma 2, uka is connected to eA.Case (ii) uka contains eA originally,,,,,,z,eA,,ukA,uk,π-1(eA

25、) < π-1(ukA) < π-1(z),If z is deleted at iteration t (t< π-1(eA) ),,,,,,z,eA,,ukA,uk,,t,π-1(eA) < π-1(z) < π-1(utD)eA connects utD. utD connects t. t connects z.,Case 1.2,Case (iii) ukA is indepenet eA

26、originally Let ukA overlap eA atfer interation t. ukA is connected to eA via ut Case (iv) ukA intersect eA originally (ukA, eA) becomes the minimal bad pair. (a contradiction) It concludes that ukA is

27、 connected to eA in G’ such that eA and z is connected in G’.,Case 2 ““intersect” to “independent”,ui and uj intersect originally. Let one of the ui and uj become indepedent after iteration k. consider the following two

28、subcases:Case 2.1: Both ui and uj overlap uk.Case 2.2: Only one of the ui and uj (said) z intersects uk (The other is named eA),Case 2.1 Both ui and uj overlap uk,,,,,,,,,,,,uk,uk,ui is connected to uj thr

29、ough uk in G’,ui,ui,uj,uj,Case 2.2 Only one of the ui and uj (say, z) intersects uk,,,,,,,,,,,z,eA,,z,eA,,,,,,z,eA,,ukA,uk is connected to z and ukA. We shall verify if ukA is connected to eA.,uk,Case 2.2 Only one of

30、the ui and uj (said) z intersects uk,(i) ukA is independent to eA or one is contained in the other originally.Check Claim 1(ii) ukA intersects eA originally.If ukA is not connected to eA, (ukA ,eA) becomes the minimal

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 眾賞文庫僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論