| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -25,7 +25,7 @@
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  breaklines=true,
 | 
					 | 
					 | 
					 | 
					  breaklines=true,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  numberstyle=\textcolor{grey},
 | 
					 | 
					 | 
					 | 
					  numberstyle=\textcolor{grey},
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  numbers=left,
 | 
					 | 
					 | 
					 | 
					  numbers=left,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  morekeywords={Merge,ExtractMinimum,Union,NIL,return,and},
 | 
					 | 
					 | 
					 | 
					  morekeywords={Merge,ExtractMinimum,Union,NIL,return,and,InvertChildren,then},
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  tabsize=4,
 | 
					 | 
					 | 
					 | 
					  tabsize=4,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  captionpos=b
 | 
					 | 
					 | 
					 | 
					  captionpos=b
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					}
 | 
					 | 
					 | 
					 | 
					}
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -146,6 +146,21 @@ ExtractMinimum(H):
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					\section*{Aufgabe 3}
 | 
					 | 
					 | 
					 | 
					\section*{Aufgabe 3}
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					\addcontentsline{toc}{section}{Aufgabe 3}
 | 
					 | 
					 | 
					 | 
					\addcontentsline{toc}{section}{Aufgabe 3}
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					Leider keine Lösung vorhanden :-(
 | 
					 | 
					 | 
					 | 
					\begin{lstlisting}[frame=single]
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					InvertChildren(x):
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
						head = NIL
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
						current = child(x)
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
						next = NIL
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
						while ( current != NIL ) do
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
							next = sibling(current)
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
							if ( child(x) == current ) then
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
								sibling(current) = NIL
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
								child(x) = NIL
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
							parent(current) = NIL
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
							sibling(current) = head
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
							head = current
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
							current = next
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
						return head
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					\end{lstlisting}
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					\end{document}
 | 
					 | 
					 | 
					 | 
					\end{document}
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
					 | 
					 | 
					
 
 |