Tip 1: How to create an algorithm
Tip 1: How to create an algorithm
Algorithm - the science of creating algorithms andProcesses, the most important component of structural programming. Without algorithms, it will not be necessary to compile a business plan, develop an application for mobile or computer games. The ability to create algorithms allows you to do many things multiple times, with a minimum of effort, in an automatic mode.
Instructions
1
For the first time the word "algorithm" was used by one of theThe creators of modern algebra, the sage and astronomer Al-Khwarizmi back in 224 AD. In their fundamental works. In his understanding, the algorithm is an instruction to solve a problem. Al-Khorezmi was a respected scholar among his colleagues, and the compilation of such instructions became the norm in a mathematical environment.
2
The most important practical and applied rolecompilation algorithms acquired with the advent of computers. Huge machines on electron tubes were created for the purpose of calculating complex expressions and solving problems. The computer can not think creatively, only understanding instructions (commands) in the binary code. The algorithm in programming is the sequence of commands leading to the achievement of the result.
3
In order to compose an algorithm, you must first determine the goal. Then you can formulate in your own words (and write down on paper, even if vague), how to achieve this goal.
4
The main features of the algorithm are the brevity of the presentation,step-by-step, clarity to the performer. A good example of the algorithm is a culinary recipe. Turn your vague description of the achievement of the goal into an instruction broken down into concrete actions that approximate the achievement of the goal. Teams should be clear, possible, non-questionable, measurable. For example: "Take 2 eggs. Cook them for 10 minutes in a saucepan. Peel off the shell. "
5
To translate an algorithm into a program code, you needTo simplify it as much as possible. Then you can rewrite it in "pseudocode" - in this language all actions are performed in the programming style, but with human, not program words. Upon completion, the pseudocode is translated into the code in a programming language known to you, and the program itself is compiled (executed by the computer).
Tip 2: Algorithm for protecting the rights of the child
In the modern world, often the freedom of one person goes beyond the freedoms of another person. If you think that your child's rights are violated, you must follow a certain algorithm.
You will need
- Regulatory documents.
Instructions
1
Find in the legislation of the Russian Federation the right of the child, which in your opinion was violated.
2
Compare the real situation with how it is interpreted in legislative acts.
3
Write a statement in which you specify the specific facts. Do not forget to refer to the broken law. The Commissioner for Children's Rights must see that you are legally competent.
4
Create all the documents in duplicate. Copies of important statements should always be at your fingertips.
5
Remember that the time for consideration of any applicationTakes a maximum of 30 days. The answer must be demanded in writing, so that in the future you have material proof if it comes to court.
Tip 3: Who wrote the first computer virus
The main feature of computer viruses is nottheir sabotage itself, but the ability to self-reproduce. Such programs first appeared in the sixties, long before the advent of personal computers.