10.09.2013 Views

1. Advanced Data Structure using C++

1. Advanced Data Structure using C++

1. Advanced Data Structure using C++

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

LECTURE NOTES OF ADVANCED DATA STRUCTURE (MT-CSE 110)<br />

Algorithm for Quick Sort<br />

Quik_Sort(a,l,h)<br />

Where a = represents list of elements.<br />

l = represents the position of the first element in the list<br />

h = represents the position of the last element in the list<br />

<strong>1.</strong> [Initially]<br />

low =l<br />

high =h<br />

key = a[(l + h)/2] [Middle element of the list]<br />

2. Repeat through step 7 while (low

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

Saved successfully!

Ooh no, something went wrong!