What is an algorithm ?! Part one

We tear together the main brick of the programmer - Algorithm .


Title


Problem


The current state of programming is teaching the craft for the most part by personal practice or by parsing examples of third-party code that you have to deal with for some reason.


. , . , ( 53- "" ). , , , .


-? ? , ?


, Junior . . , - ? , , "Copy-Paste" . , , , , .


:


  • ;
  • , ;
  • ;
  • .

, .


. . — .



, . , :


  • - - (, );
  • - (, , ...);
  • ;
  • ;
  • ;
  • ;
  • ;
  • , , .

"" , .


, , " " - " " "" "" " ".


:


  • ?
  • , ?
  • ?
  • ?
  • ?
  • ?
  • ...

" , " "", "", "" "" " ". :


  • ?
  • ?
  • , ?
  • ?
  • (, — )?
  • ?
  • , ?
  • ?
  • ?
  • ?
  • , ?
  • , ?
  • , , , ?

, . , . , , "". "" , . "" , , .



, , — . . . , , . — .


Euclid's algorithm

. . — — -. Scratch, - . .




, , . " , ", , , , "". "" . , "" .


" = ", " — ". , . . , , . .


:


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


"" , "" .


"" . "" . , :


  • "", ,
  • "", "", .

"" ? ""? "" . . , , . . .


Revered descendant of Newton's Apple Tree , , . ? ""! , .




, "". , . . , , , . — .


"-" "" :


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

, "" "".



, , . , .


Nuclear 'Actions'

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





— . (, NaOH+HClNaCl+H2O) "". . "" . . , , . — . , "" "" , , , . .


Chemical reaction


"" . — . " ", . "" — . "" .


, "" (" "), : "", " " " ". , . , "" . — . , , (. 'calculi'), "" , . , "" .


Addition for children 1

, "", "" " ".





, , "" .


:


  • "" ( );
  • №1, ( ), ;
  • №2, .

:


  • "" ( ) ;
  • "" ( , , "" " -" )

:


  • , ();
  • "", .

-


. .


Abacus

-. . . 10 — . . "".


:


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

:


  • "" ( );
  • №1, ( ), ;
  • №2, ( ), ;

:


  • "" ( ) ;
  • "" ( , ) " -" " ";
  • "" " -"

:


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

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



"" " " . " " .


Turing Machine Implementation , , .






, "" , , . , "", . , . , . . "", .



, "":


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

. , "" . "" .


( 2) , "" . , . — .


.



, .


I have a separate excitement in the style and formatting used in the article (quotation marks, paragraphs, italics). Please write if you have comments on them. It is possible by personal message.


References



All Articles