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.

Algorithm<br />

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

Delete‐location(START , LOC).This algorithm deletes an element from the<br />

specified position of the linked list.<br />

<strong>1.</strong> [check for under flow ?]<br />

If PTR= = NULL, then<br />

Print “underflow”<br />

Exit<br />

2. [Initialise the counter, I and pointers]<br />

Node * temp, node *PTR ;<br />

Set I=0<br />

Set *ptr = START<br />

3. Repeat step 4 to 9 untill I

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

Saved successfully!

Ooh no, something went wrong!