 |
 |
|
|
| |
| |
| |
|
|
| Articles about Sorted |
| Finally sorted out my emails... | | 2008-08-26 12:07:16 | | It took more then an hour but finally it's done!
God! The irony of having un-spam-filtered email accounts...
You have no idea how annoying it is to receive that many spam mails a day. I mean, if these mails came in physical form, my room would probably be flooded within a week.
Okay. I'm not exactly getting 7,490 mails a day. (I'd probably go nuts if I did.)
On a rough average, I'm basically get about a thousand emails from all over the place. Close to half of them comes from my contact form and/or comment notification feature in my blog.
Continue reading...... | | By: Princess Sabrina - Just memories... | | |
| | Insertion and Deletion of elements in a Sorted Array | | 2007-07-01 08:37:00 | | In the article Insertion
and Deletion of elements in an Array, we saw how data is inserted and
deleted in an unsorted array. In that case, we needed two information, the element
as well as the position, for insertion while for deletion we needed the position.
In the case of sorted arrays insertion and deletion takes pace in a slightly
different way.
The following example will clarify this:
Suppose we have the following array:
arr[5]={1,2,3,4,5}
And, we need to insert the element 6, so where it should be inserted? We can’t
insert it at any place because then the array might not remain sorted. Therefore,
we let the program to automatically calculate the position suitable for the
new element, so that the array remains sorted even after insertion.
Now, arr[5]={1,2,3,4,6}
Now, suppose we wish to delete the element 6, in this case we don’t use
the position for deletion because we don’t know where the element was
placed by the program, so rather than referencing the position for deletio... | | By: Learning Computer Programming | | |
|
|
| |
 |
|
| |
| |
|
 |