23.11.2014 Views

Data Structures and Algorithms in Java[1].pdf - Fulvio Frisone

Data Structures and Algorithms in Java[1].pdf - Fulvio Frisone

Data Structures and Algorithms in Java[1].pdf - Fulvio Frisone

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Figure 11.2: Visualization of an execution of mergesort.<br />

Each node of the tree represents a recursive call<br />

of merge-sort. The nodes drawn with dashed l<strong>in</strong>es<br />

represent calls that have not been made yet. The node<br />

drawn with thick l<strong>in</strong>es represents the current call. The<br />

empty nodes drawn with th<strong>in</strong> l<strong>in</strong>es represent<br />

completed calls. The rema<strong>in</strong><strong>in</strong>g nodes (drawn with th<strong>in</strong><br />

l<strong>in</strong>es <strong>and</strong> not empty) represent calls that are wait<strong>in</strong>g<br />

680

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!