Algorithm Specification A Pseudo code Approach || Lesson 2 || Algorithms || Learning Monkey || смотреть онлайн
Algorithm Specification A Pseudo code Approach
This class will try to understand Algorithm Specification A Pseudo code Approach.
We have already discussed the definition of an Algorithm in the previous class.
Algorithm Specification A Pseudo code Approach
For example, assume that if we have a problem finding the given number is even or odd.
For that problem, we have to write an algorithm.
So far, we haven’t specified how to write an algorithm.
How to describe an algorithm?
Using Natural Language like English
Flow chart
Pseudo code Approach
The algorithm to find whether the given number is even or odd using the natural language approach is shown below.
Ask the user to provide a number
Do the modulus division by two
Compare the result of modulus division with 0
If the result is equal, then it is an even number
Else it is an odd number
We use simple English sentences to write an algorithm in the above approach.
Each step of the algorithm is explained in detail using the English language.
The flow chart approach is a pictorial way of representing an algorithm.
This approach is suitable for small or straightforward algorithms, but it is a complex process for big algorithms.
The third approach is the Pseudo Code approach.
The name itself states Pseudo means half code.
It uses the keywords or the syntax of any programming language.
The algorithm to find whether the given number is even or odd is shown below.
Algorithm EvenorOdd()
{
if(number%2 == 0) then
print even;
else
print odd;
}
We use this approach to write algorithms in the entire course.
#algorithms #gatecse #learningmonkey #computerscienceengineering #competitivecoding #placementtraining
Link for playlists:
https://www.youtube.com/channel/UCl8x4Pn9Mnh_C1fue-Yndig/playlists
Link for our website: https://learningmonkey.in
Follow us on Facebook @ https://www.facebook.com/learningmonkey
Follow us on Instagram @ https://www.instagram.com/learningmonkey1/
Follow us on Twitter @ https://twitter.com/_learningmonkey
Mail us @ [email protected]
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Algorithm Specification A Pseudo code Approach || Lesson 2 || Algorithms || Learning Monkey ||» бесплатно и без регистрации, вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.