What is an Algorithm ? Introduction to Algorithms



Hello everyone, Dear TurkHackTeam members, in this topic, we will make a general introduction to algorithms. What is an algorithm ? What is a flowchart ? We will learn about these concepts and then write an algorithm with a flowchart. I hope it will be a useful topic for you :)






What is an Algorithm?

The algorithm emerged in the 9th century, initially introduced by Al-Khwarizmi, or his full name Abu Abdullah Muhammad ibn Musa al-Khwarizmi. Initially appearing in computer science and mathematics, but now central to our lives, an algorithm is the path followed to solve a problem or achieve a goal.

Algorithms are finite structures, with two essential points in every algorithm: starting and ending points.

What is a Flowchart?

A flowchart, or flow diagram, is the graphical representation of an algorithm using specific symbols.


Flowchart Symbols and Their Meanings


Now I'll draw a flowchart indicating whether the entered number is positive or negative.


We mentioned that there are absolute entry and exit points in the algorithm. Let's start by creating our flowchart from the entry point. I'll use the
Flowchart Maker & Online Diagram Software website for this drawing.

First, we specify our starting point.

We will establish connections between our shapes using arrow symbols.



Now we will take a number from the user, and in the next step, we will make decisions based on certain conditions regarding the number we received.


One of the first checks we will perform is whether the number taken is equal to 0. If it is equal, the user will be directed to enter a new value.



Finally, the last check we will perform is whether the number is greater than zero or less than zero. After this query, once the output is given, our flowchart will terminate


Here, if the query we will perform returns True if the number is greater than zero, it will lead to a positive output; if it returns False, it will lead to a negative output. Finally, after the last output is received, the flowchart will reach the endpoint, and our diagram will be completed.
Topic Owner : @Ɲémesis Algoritma Nedir ? Algoritmaya Giriş

34.png
 
Üst

Turkhackteam.org internet sitesi 5651 sayılı kanun’un 2. maddesinin 1. fıkrasının m) bendi ile aynı kanunun 5. maddesi kapsamında "Yer Sağlayıcı" konumundadır. İçerikler ön onay olmaksızın tamamen kullanıcılar tarafından oluşturulmaktadır. Turkhackteam.org; Yer sağlayıcı olarak, kullanıcılar tarafından oluşturulan içeriği ya da hukuka aykırı paylaşımı kontrol etmekle ya da araştırmakla yükümlü değildir. Türkhackteam saldırı timleri Türk sitelerine hiçbir zararlı faaliyette bulunmaz. Türkhackteam üyelerinin yaptığı bireysel hack faaliyetlerinden Türkhackteam sorumlu değildir. Sitelerinize Türkhackteam ismi kullanılarak hack faaliyetinde bulunulursa, site-sunucu erişim loglarından bu faaliyeti gerçekleştiren ip adresini tespit edip diğer kanıtlarla birlikte savcılığa suç duyurusunda bulununuz.