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

• Updating :‐ In this operation modify and update the data in the data<br />

structure.<br />

Example:‐ suppose a member moved and has a new address and<br />

telephone number. Given the name of the member one need to search<br />

for the record in the file. Then one would perform the”update”i.e.change<br />

item in the record with the new item<br />

• Sorting :‐ arranging the records in some logical record(i.e. the arranging all<br />

data item in a data structure in a particular order either in accending<br />

order or in decending order).<br />

• Merging :‐ The process of combination the data item of two different<br />

sorted list into a single sorted list.<br />

Applications of data structure :‐<br />

Arrays<br />

Lists<br />

Stack<br />

Queues<br />

Trees<br />

Graphs<br />

Run Time of a Program<br />

Run‐time means the time it takes the CPU to execute an implementation of the<br />

algorithm. The number of <strong>C++</strong> instructions should give us a good measure of the<br />

number of machine instructions. This is how we will measure the run‐time<br />

efficiency of an algorithm. Usually the "number of steps" depends on the<br />

number n of inputs to the algorithm. For instance, if you are searching an array,<br />

it will usually take less steps if the size n of the array is smaller.<br />

Prepared By :­<br />

Er. Harvinder Singh<br />

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

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

Saved successfully!

Ooh no, something went wrong!