mirror of
				https://github.com/autistic-symposium/master-algorithms-py.git
				synced 2025-10-30 13:49:02 -04:00 
			
		
		
		
	Update README.md
This commit is contained in:
		
							parent
							
								
									07f6564fe6
								
							
						
					
					
						commit
						4caa1fe7f4
					
				
					 1 changed files with 16 additions and 0 deletions
				
			
		|  | @ -229,3 +229,19 @@ class MaxHeap: | |||
|         return str(self.maxheap[1 : self.realsize + 1]) | ||||
| ``` | ||||
| 
 | ||||
| <br> | ||||
| 
 | ||||
| --- | ||||
| 
 | ||||
| 
 | ||||
| ### heap sort | ||||
| 
 | ||||
| <br> | ||||
| 
 | ||||
| 
 | ||||
| * the core concept of the heap sort involves constructing a heap from our input and then repeatedly removing the min/max element to sort the array. | ||||
| * the key idea for in-place heap sort involves a balance of these two ideas: | ||||
| 	- building a heap from an unsorted array through a "bottom-up heapification" process, and | ||||
|  	- using the heap to sort the input array | ||||
| * heapsort traditionally uses a max-heap to sort the array, although a min-heap also works. | ||||
| * this is not a stable sort. | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 marina
						marina