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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

Introduction to sorting<br />

Sorting Techniques<br />

Sorting is a process in which arranging of data is done in some given sequence<br />

increasing or decreasing order . Searching for an element will be more efficient in<br />

an array<br />

Categorization:<br />

internal sorting external sorting<br />

Arranigng the no’s within the sorting of no. from<br />

the array only which is in external file by<br />

reading it primary memory from secondary memory<br />

Why we do sorting?<br />

Commonly encountered programming task in computing.<br />

Examples of sorting:<br />

<strong>1.</strong> List containing exam scores sorted from Lowest to Highest or from<br />

Highest to Lowest<br />

2. List containing words that were misspelled and be listed in<br />

alphabetical order.<br />

3. List of student records and sorted by student number or<br />

alphabetically by first or last name.<br />

Prepared By :­<br />

Er. Harvinder Singh<br />

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

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

Saved successfully!

Ooh no, something went wrong!