What is an algorithm? _ ?? Part Ο€ "Copying the Memory Hierarchy"

Patient Algorithm on the operating table. He is alive and well. So let's put the scalpel aside. We will study with the power of our thoughts.



Title



Task



" ?". β€” . "" . " " , , "" .



dog`s heart



, , - . , β€” . . . , , , , . .



, ( 1 "", 2 "", 3 "", 3.1 " "). .



.





"" ( ) : " () ". , , , β„–3.1 " ", , :



  • ,
  • ( ),
  • ,
  • OR AND
  • .


, , , . , , AND . , , - "", ( β„–1 ""), - .



, "". "" (" ") . () , . .



" ", , .



β€” , , , ( / ) . , , .



, . , :



  • , ;
  • (, , ), , , " ".


. ( , ). . β€” , .



, "", BASIC ( ASM) . ( ) , "-". " ", - .



Spaghetti code



. , "" "". , , . , Γ³ !



? ? ?



, ( ). . , . . ( ), . . .



( 2 ) . β„–1 , β„–2 ("" ). , . β„–1 ( -) " " . " " " " β„–2.



, β„–1 " ", " " , . "".



hierarchy prepare



, .



β„–
1 ("β„–1") ("β„–4") (" β„–3") ("β„–4") β‡’ (" β„–3"); (" β„–3") β‡’ ("β„–1")
2 ("β„–2") ("β„–5") (" β„–4") ("β„–5") β‡’ (" β„–4"); (" β„–4") => ("β„–2")
3 ("") - { ("β„–1") β†’ ("β„–2") } - ("β„–1") β‡’ ("β„–2") β‡’ ("")
4 -{ ("β„–1") β†’ ("β„–2") } -{ ("β„–1") β†’ ("β„–2") } (" β„–1") ("β„–1") β‡’ ("β„–2") β‡’ (" β„–1"); (" β„–1") β‡’ ("β„–1") β‡’ ("β„–2")
5 ("β„–1") ("β„–3") (" β„–2") ("β„–3") β‡’ (" β„–2); (" β„–2") => ("β„–1")


("β„–1") ("β„–2"). β„–3 , , ("β„–1") β†’ ("β„–2") (""). β„–4 - { ("β„–1") β†’ ("β„–2") } - , -{ ("β„–1") β†’ ("β„–2") }. β„–5 ("β„–1") ("β„–3").



. , :



  • ;
  • ;
  • - -.


( ) . . . β€” , (" "). "" ( "" ).



hierarchy



. . , , { (" β„–5") β‡’ (" β„–3") }. , ( -, -) .



, , :



  • ;
  • ;
  • "" .


, ( ) . , , , .



, ( ) . , , . .





, "" . , .



apple



, . , . . , , . . , . !



, . , β€” , () . ? , , .. .



β€” . -, , -, . :



  • ( 1) - - , , - ;
  • ( 2) - , -;
  • - 1 2 -.


, ( ) . , . , , . : " , ". , . , ( ) .





, , , ( ), , , . , , ( ). :



  • β€” ;
  • ( " -, ", );
  • , β€” , .


, . , . .



. { β‡’ }. - -?



-. β„–3 "" . . , -. , . - .



- . . .



. , , ...



end



.





, , .



, (, , ). , , . .








All Articles