HTML & CSS
390 subscribers
728 photos
1 video
4 files
54 links
πŸ‘Œ HTML & CSS
@html_css_tut

πŸ‘ŒJavaScript
@javascript_tut

πŸ‘Œ PHP
@php_tut


πŸ‘ŒAll About Coding
@codingWithElias
Download Telegram
MEME πŸ˜…πŸ˜‚ LOL
What Is an Algorithm?

πŸ’ŽAlgorithm: an effective method expressed as a finite list of well-defined instructions for solving a
problem.

πŸ’ŽAn algorithm is the list of instructions and rules that a computer needs to do to complete a task.

πŸ’ŽIn essence, algorithms are simply a series of instructions that are followed, step by step, to do something useful or solve a problem.

@Computer_science_course
Design can be shown using algorithms.

An algorithm must possess the following properties:

πŸ’Žfiniteness: The algorithm must always terminate after a finite number of steps.

πŸ’Ždefiniteness: Each step must be precisely defined; the actions to be carried out must be rigorously and
unambiguously specified for each case.

πŸ’Žinput: An algorithm has zero or more inputs, taken from a specified set of objects.

πŸ’Žoutput: An algorithm has one or more outputs, which have a specified relation to the inputs.

πŸ’Žeffectiveness: All operations to be performed must be sufficiently basic that they can be done exactly
and in finite length.

@Computer_science_course
An algorithm may be expressed in a number of ways, including:

πŸ’ŽNatural language:
πŸ’ŽPseudocode
πŸ’ŽFlow charts:

@Computer_science_course
1. Flowchart

πŸ’ŽIs a picture (graphical representation) of the problem
and solving process.

πŸ’ŽA flowchart gives a step-by-step procedure for solution of a problem

@Computer_science_course
Example 1 : πŸ’Ž An algorithm that checks lamp.

@Computer_science_course
Example 2 : πŸ’ŽAn algorithm that takes two numbers and finds the sum.


@Computer_science_course
Example 3: πŸ’ŽAn algorithm that list the multiplication table for a given number.


@Computer_science_course
2. Pseudo-code

πŸ’Žfake and Informal language that helps programmers to plan an algorithm.

πŸ’ŽIt is somewhat similar to everyday English with a feel of programming language.


@Computer_science_course
Example: πŸ’Ž a Pseudo-code for a program that calculates the factorial for a given number.

@Computer_science_course
Forwarded from C++ Programming
What is C++?

πŸ“Œ C++ is a cross-platform language that can be used to create high-performance applications.

πŸ“Œ C++ was developed by Bjarne Stroustrup, as an extension to the C language.

πŸ“Œ C++ gives programmers a high level of control over system resources and memory.

@c_programming_tut