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 />

1 2 3 4 5<br />

A(f=1,r=1)<br />

A(f=1) B(r=2)<br />

A(f=1) B C(r=3)<br />

A(f=1) B C D(r=4)<br />

A(f=1) B C D E(r=5)<br />

Steps one by one(insertion)<br />

Step 1: in queue table there are five elements are filled one by one first is<br />

empty so F=0,R=0<br />

Step 2:insert A so, F=1,R=1 in special case<br />

Step 3: insert B so, F=1,R=2<br />

Step 4: insert C so, F=1,R=3<br />

Step 5: insert D so, F=1,R=4<br />

Step 6: insert E so, F=1,R=5<br />

Step 7: insert F so , it can’t be inserted<br />

DELETION TABLE<br />

Prepared By :­<br />

Er. Harvinder Singh<br />

Assist Prof., CSE, H.C.T.M (Kaithal) Page ‐ 142 ‐

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

Saved successfully!

Ooh no, something went wrong!