can anyone explain heap sort briefly .......
9 replies to this topic
#1
Posted 12 December 2011 - 12:10 PM
|
|
|
#2
Posted 12 December 2011 - 12:30 PM
I suppose you would first need to understand what a heap is: Heap (data structure) - Wikipedia, the free encyclopedia
Latinamne loqueris?
#3
Posted 15 December 2011 - 11:33 PM
Heap is basically an address space, somewhere in memory, used for program(/s) to allocate memory; I'm not sure if it's used for opening files, making new sockets, or other uses, though.
#4
Posted 19 December 2011 - 10:06 PM
Actually the heap I am referring to isn't what you are thinking of. Its a type of tree, where each child node has a lower value then its parent.
Latinamne loqueris?
#5
Posted 20 December 2011 - 01:54 PM
The stack?
#6
Posted 20 December 2011 - 05:27 PM
A heap is a data structure, think like a balanced tree, only different. I haven't studied it, so won't say much beyond that.
#7
Posted 20 December 2011 - 05:55 PM
Do you mean a binary tree? What's balanced?
#8
Posted 20 December 2011 - 09:47 PM
A heap is a tree based data structure. Not necessarily a type of binary tree, but it could possibly fall under that category as well.
Latinamne loqueris?
#9
Posted 20 December 2011 - 10:41 PM
Balanced means it has the same number of branches within every branch?
This is different from the type of heap operating systems use, right?
This is different from the type of heap operating systems use, right?
#10
Posted 20 December 2011 - 11:16 PM
No, balanced means it attempts to keep its height low. And yes, it is different than the "heap" used in reference to memory.
Latinamne loqueris?
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account

Back to top









