1 / 7

Example of Algorithm

Example of Algorithm. MS(a) ; MS(b) ; ... ; MS(i) ; MS(j). e/0. b/0. c/0. d/0. a/0. j/0. g/0. h/0. i/0. f/0. parent pointer. rank. U(a,b) ; U(c,d) ; U(e,f) ; U(g,h); U(i j). j/1. d/1. f/1. h/1. b/1. i/0. c/0. e/0. g/0. a/0. Example (Continued). j/1. d/1. f/1.

larsenr
Download Presentation

Example of Algorithm

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Example of Algorithm MS(a) ; MS(b) ; ... ; MS(i) ; MS(j) e/0 b/0 c/0 d/0 a/0 j/0 g/0 h/0 i/0 f/0 parent pointer rank U(a,b) ; U(c,d) ; U(e,f) ; U(g,h); U(i j) j/1 d/1 f/1 h/1 b/1 i/0 c/0 e/0 g/0 a/0 Comp 750, Fall 2009

  2. Example (Continued) j/1 d/1 f/1 h/1 b/1 i/0 c/0 e/0 g/0 a/0 U(a,d) d d/2 j/1 f/1 h/1 d b/1 d c/0 i/0 e/0 g/0 a/0 d Comp 750, Fall 2009

  3. Example (Continued) d d/2 j/1 f/1 h/1 d b/1 d c/0 i/0 e/0 g/0 a/0 d U(f,h) d d/2 h h/2 j/1 d b/1 d c/0 f/1 h g/0 i/0 a/0 h e/0 h d Comp 750, Fall 2009

  4. Example (Continued) d d/2 h h/2 j/1 d b/1 d c/0 f/1 h g/0 i/0 a/0 h e/0 h d U(d,h) h h/3 j/1 g/0 h d d/2 f/1 i/0 h b/1 d d c/0 e/0 h a/0 d Comp 750, Fall 2009

  5. Example (Continued) h h/3 j/1 g/0 h d d/2 f/1 i/0 h b/1 d d c/0 e/0 h a/0 d U(e,j) h h/3 d/2 d e/0 f/1 g/0 j/1 b/1 d h h h c/0 d i/0 a/0 d Comp 750, Fall 2009

  6. Example (Continued) h h/3 d/2 d e/0 f/1 g/0 j/1 b/1 d h h h c/0 d i/0 a/0 d FS(i) BC h h/3 Block 2 BC d/2 d Block 1 BC e/0 f/1 g/0 j/1 i/0 b/1 d Block 0 h h h c/0 PC d a/0 Block 0 d Comp 750, Fall 2009

  7. Example (Continued) h h/3 d/2 d e/0 f/1 g/0 j/1 i/0 b/1 d h h h c/0 d a/0 d FS(a) h h/3 f/1 g/0 a/0 b/1 d/2 e/0 i/0 j/1 d h h h d d c/0 d Comp 750, Fall 2009

More Related