17

Algorithm ….what it actually means ??

Computer totally works on the instruction given by the user. It can’t perform a single task with itself. Sometime there is need to give instruction at the time of use or sometime we need to give pre instructions for the system functioning. Everything in the computer is pre-programmed (with system point of view) and some of the programming is done by programmer later on, as per need(with application point of view). To  write a computer program, you have to tell the computer, step by step, exactly what you want it to do. The computer then “executes” the program, following each step technically, to accomplish the end task.

When you are telling the computer what to do, you also get to choose how it’s going to do it. That’s where computer algorithms come in. The algorithm is the basic technique used to get the task done. Let’s follow an example to have a clear concept of ALGORITHM.

Let’s say that you have a friend arriving at the Railway station, and your friend needs to get from the station  to your house. Here are four different algorithms that you might give your friend for getting to your home:

The Cab algorithm:

  1. Go to the cab merchant.
  2. Book a Cab.
  3. Give the Cab merchant my address.

The call-me algorithm:

  1. When your TRAIN arrives, call ME
  2. Give me a hand signal when u see

 

The bus algorithm:

  1. Outside baggage claim, catch bus number 44.
  2. Transfer to bus 45 on Main Street.
  3. Get off on Elm street.
  4. Walk FOUR blocks east to my house.

All four of these algorithms accomplish exactly the same goal, but each algorithm does it in completely different way. Each algorithm also has a different cost and a different travel time. Taking a cab, for example, is probably the fastest way, but also the most expensive. Taking the bus is definitely less expensive, but a whole lot slower. You choose the algorithm based on the circumstances.

In computer programming, there are often many different ways — algorithms — to accomplish any given task. Each algorithm has merits and demerits in different situations. Sorting is one place where a lot of research has been done, because computers spend a lot of time sorting lists. Here are five different algorithms that are used in sorting:

  1. Bin sort
  2. Merge sort
  3. Bubble sort
  4. Shell sort
  5. Quicksort

 

we will discuss this topic in more detail in upcoming blog ::

Share with your friends.....

Aditya Kr. (Founder)

17 Comments

      • Iss comment pe bahut bhadiya se thanks kiye ho,kya baat hai.Pata nahi samajh bhi aaya hoga ki nahi sentence pura.
        Never change yourself just for the sake of pleasing others.Mind it

  1. 【妝前打底】日本彩妝大師特調飾底乳,一次打包持妝、修飾、校色三大困擾-BRILLIAGE妝前飾底乳 @ 潮流、美妝、消費 創造個人化風格的女性社群 PIXstyleMe 【妝前打底】日本彩妝大師特調飾底乳,一次打包持妝、修飾、校色三大困擾-BRILLIAGE妝前飾底乳

  2. Sule is delighted that Schalke vice captain Goretzka has chosen to join Bayern Munich in the summer. Goretzka signed a pre-contract agreement with the Bundesliga leaders earlier this month. Niklas Sule ‘incredibly happy’ Leon Goretzka is joining Bayern Munich from Schalke: ‘I think he is absolutely a leader and he can be that here too’

  3. Arsenal manager Arsene Wenger is not a fan of the January transfer window – and would rather be able to do business throughout the whole season or not at all. Wenger blasts January sales that give players an ‘easy way out’

Leave a Reply

Your email address will not be published.