Discover millions of ebooks, audiobooks, and so much more with a free trial

Only $11.99/month after trial. Cancel anytime.

Introduction to Algorithms
Introduction to Algorithms
Introduction to Algorithms
Ebook61 pages19 minutes

Introduction to Algorithms

Rating: 0 out of 5 stars

()

Read preview

About this ebook

           Algorithms are necessary for writing a computer program. Good algorithms can increase the performance of computer programs. A good algorithm should give better results in less time using low computer resources.
           This book is introduce readers to important algorithms of computer science.

LanguageEnglish
Release dateSep 7, 2021
ISBN9798201977719
Introduction to Algorithms

Read more from S Vasist

Related to Introduction to Algorithms

Related ebooks

Programming For You

View More

Related articles

Reviews for Introduction to Algorithms

Rating: 0 out of 5 stars
0 ratings

0 ratings0 reviews

What did you think?

Tap to rate

Review must be at least 10 words

    Book preview

    Introduction to Algorithms - S VASIST

    Algorithm 

    What & Why

    AN ALGORITHM IS A SET of steps to perform a task. In computer science, it is just a set of instructions. Computer can run an algorithm only if it is written in a programming language.

    EXAMPLE:

    Problem Task: Prepare tea

    Algorithm to complete the task: 

    Fill water in kettle

    Boil the water.

    Put teabag, milk, and sugar in a cup.

    Pour hot water into the cup.

    Mix the contents of the cup.

    Algorithms are necessary for writing a computer program. Good algorithms can increase the performance of computer programs. A good algorithm should give better results in less time using low computer resources. Algorithms are judged mainly on two parameters: Correctness and efficiency.

    Characterstics

    Agood algorithm should have following characteristics.

    Input / Output: algorithm should have definite and specified input and outputs.

    Finiteness: It should not run infinitely. It must be completed in a finite amount of time.

    Definiteness or

    Enjoying the preview?
    Page 1 of 1