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

Traversing<br />

Searching<br />

Inserting<br />

Deleting<br />

Updating<br />

Sorting<br />

Merging<br />

• Traversing :‐ Accessing each record exactly once so that certain items<br />

in the record processed (this accessing and processing is sometime called<br />

“visiting” the record.)<br />

Example :‐1 Suppose the organization wants to announce a meeting<br />

through a mailing .then one would traverse the file to obtain Name and<br />

address for each member.<br />

2. Suppose one wants to find the name of all member of living in a certain<br />

area. Again traverse the file to obtain the data.<br />

• Searching :‐ finding the location of the record with the given key<br />

value ,or finding the locations of all records which satisfy one or more<br />

conditions.<br />

Example :‐ Suppose one wants to obtain address for a name. Then one<br />

would search the file for the record containing Name.<br />

• Inserting :‐Adding a new record to the structure.<br />

Example :‐ Suppose a new person join the organization.Then<br />

one would insert his or her record<br />

• Deleting :‐ This operation is also called destroy operation. In which<br />

memory allocation for the specified data structure.<br />

Example :‐ Suppose a member dies. Then one would delete his or her<br />

record.<br />

Prepared By :­<br />

Er. Harvinder Singh<br />

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

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

Saved successfully!

Ooh no, something went wrong!