DAA - Introduction Dr. Sashikala Mishra Associate Professor Department of Computer Engineering Hope Foundation’s INTERNATIONAL INSTITUTE OF INFORMATION.

Slides:



Advertisements
Similar presentations
UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering Design and Analysis of Algorithms - Chapter 11 Algorithm An algorithm is a.
Advertisements

1 Chapter 2 Problem Solving Techniques INTRODUCTION 2.2 PROBLEM SOLVING 2.3 USING COMPUTERS IN PROBLEM SOLVING : THE SOFTWARE DEVELOPMENT METHOD.
DCT 1123 PROBLEM SOLVING & ALGORITHMS INTRODUCTION TO PROGRAMMING.
Problem Solving Techniques. Compiler n Is a computer program whose purpose is to take a description of a desired program coded in a programming language.
Problem Solving using the Science of Computing MSE 2400 EaLiCaRA Spring 2015 Dr. Tom Way.
IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.
Algorithms & Flowchart
1 BIM304: Algorithm Design Time: Friday 9-12am Location: B4 Instructor: Cuneyt Akinlar Grading –2 Midterms – 20% and 30% respectively –Final – 30% –Projects.
SNU OOPSLA Lab. 1 Great Ideas of CS with Java Part 1 WWW & Computer programming in the language Java Ch 1: The World Wide Web Ch 2: Watch out: Here comes.
CS404 Design and Analysis of Algorithms BBy DDr. M V S Peri Sastry BB.E, PhD(BITS-Pilani)
Onlinedeeneislam.blogspot.com1 Design and Analysis of Algorithms Slide # 1 Download From
Lecture #1: Introduction to Algorithms and Problem Solving Dr. Hmood Al-Dossari King Saud University Department of Computer Science 6 February 2012.
CSCE 411 Design and Analysis of Algorithms Set 1: Introduction and Review Prof. Jennifer Welch Spring 2012 CSCE 411, Spring 2012: Set 1 1.
INTRODUCTION TO COMPUTER PROGRAMMING(IT-303) Basics.
Introductory Lecture. What is Discrete Mathematics? Discrete mathematics is the part of mathematics devoted to the study of discrete (as opposed to continuous)
Principles of Programming & Software Engineering
Introduction to Algorithms
Advanced Computer Systems
TK3043 Analysis and Design of Algorithms
CSCI-235 Micro-Computer Applications
Chapter 2- Visual Basic Schneider
ALGORITHMS AND FLOWCHARTS
DATA STRUCTURES AND OBJECT ORIENTED PROGRAMMING IN C++
Lecture 2 Introduction to Programming
Courtsey & Copyright: DESIGN AND ANALYSIS OF ALGORITHMS Courtsey & Copyright:
Introduction to Computer Programming
BASIC PROGRAMMING FOR DATA ANALYSIS
Algorithm An algorithm is a finite set of steps required to solve a problem. An algorithm must have following properties: Input: An algorithm must have.
Chapter 2- Visual Basic Schneider
Chapter 2- Visual Basic Schneider
DESIGN PATTERNS : Strategy Pattern
COMPUTER NETWORK TECHNOLOGY
DESIGN PATTERNS : State Pattern
Understanding Problems and how to Solve them by using Computers
Physics of Nanoparticles
Composition & Resolution of Forces
Programming Fundamentals (750113) Ch1. Problem Solving
Introduction to Algorithms
Click to add Text Computers & Instructions. Computers are given instructions in the form of computer programs that are created through the development.
DESIGN PATTERNS : Adapter Pattern
Usability Heuristics Prof
EQUIVALENCE CALCULATIONS UNDER INFLATION
NP-COMPLETE Prof. Manjusha Amritkar Assistant Professor Department of Information Technology Hope Foundation’s International Institute of Information.
International Institute of Information Technology, (I²IT).
Programming Fundamentals (750113) Ch1. Problem Solving
Engineering Mathematics-I Eigenvalues and Eigenvectors
Software Design Methodologies and Testing
Pass Structure of Assembler
INTERNATIONAL INSTITUTE OF IFORMATION TECHNOLOGY, (I²IT)
INTERNATIONAL INSTITUTE OF IFORMATION TECHNOLOGY, (I²IT)
Discrete Mathematics in the Real World
Newton’s Laws of Motion
By Sandeep Patil, Department of Computer Engineering, I²IT
Differential Equation
BINARY HEAP Prof ajitkumar shitole Assistant Professor Department of computer engineering Hope Foundation’s International Institute of Information.
gyroscope Prof Varsha Degaonkar Assistant Professor
Introduction to TCP/IP protocol Suite
Hope Foundation’s International Institute of Information.
Essay Writing Writing is an art Prepared by Vaidehi Banerjee
Introduction to Human Computer Interaction
Design procedure for an Integrator
INTRODUCTION TO ALOGORITHM DESIGN STRATEGIES
Tel Hope Foundation’s International Institute of Information Technology, (I²IT). Tel
Discrete Mathematics and Its Applications
PIC Microcontroller ADC interfacing Prof. Ashvini Kulkarni
INTERNATIONAL INSTITUTE OF IFORMATION TECHNOLOGY, (I²IT)
Tel Hope Foundation’s International Institute of Information Technology, (I²IT). Tel
Transaction Serializability
CASCADING STYLE SHEET WEB TECHNOLOGY
Presentation transcript:

DAA - Introduction Dr. Sashikala Mishra Associate Professor Department of Computer Engineering Hope Foundation’s INTERNATIONAL INSTITUTE OF INFORMATION TECHNOLOGY, (I²IT) www.isquareit.edu.in

Contents Importance of Algorithm Types of Algorithm Design of an algorithm Applications Hope Foundation’s International Institute of Information Technology, I²IT P-14,Rajiv Gandhi Infotech Park MIDC Phase 1, Hinjawadi, Pune – 411057 Tel - +91 20 22933441/2/3 | www.isquareit.edu.in | info@isquareit.edu.in

Algorithm An algorithm is a stepwise procedure to complete the task. Algorithm which takes the input process it and provides the desired output. For a single problem we can have multiple algorithms. {A1,A2,A3 …} Process Input Desired Output Hope Foundation’s International Institute of Information Technology, I²IT P-14,Rajiv Gandhi Infotech Park MIDC Phase 1, Hinjawadi, Pune – 411057 Tel - +91 20 22933441/2/3 | www.isquareit.edu.in | info@isquareit.edu.in

How to select an algorithm If they are many approaches are present to solve a problem we can select the best by considering the time and space complexity. The algorithm can be represent as program by using programming language. Like C, C++, JAVA etc The program can be written in two ways 1. Iterative 2. Recursive In iterative we generally use the loops like for or while in the case of recursive the same function is called more number of times Hope Foundation’s International Institute of Information Technology, I²IT P-14,Rajiv Gandhi Infotech Park MIDC Phase 1, Hinjawadi, Pune – 411057 Tel - +91 20 22933441/2/3 | www.isquareit.edu.in | info@isquareit.edu.in

Importance of Algorithm Competent algorithms lead to capable programs. Competent programs always substantially preferred by end user Capable programs which came from good algorithm make better use resources . Algorithms provides a appropriate constitution to write the program. Hope Foundation’s International Institute of Information Technology, I²IT P-14,Rajiv Gandhi Infotech Park MIDC Phase 1, Hinjawadi, Pune – 411057 Tel - +91 20 22933441/2/3 | www.isquareit.edu.in | info@isquareit.edu.in

Difference between program and algorithm Algorithm is written using normal or algorithmic language. E.g. Write the value of A Programs are written using a specific programming language like C, C++ etc. cout << "Hello"; Hope Foundation’s International Institute of Information Technology, I²IT P-14,Rajiv Gandhi Infotech Park MIDC Phase 1, Hinjawadi, Pune – 411057 Tel - +91 20 22933441/2/3 | www.isquareit.edu.in | info@isquareit.edu.in

Problem Solving Approach Identify the problem Specifications. (Input and Output) Sketch the logic and list the steps to get the target output Write the steps in a particular order and check each steps for finiteness Flowchart to be drawn for Algorithm 5. Translate the Algorithm to any of the Programming language 6. Test the program and Check the Output 7. Documentation 8. Application of the program. Hope Foundation’s International Institute of Information Technology, I²IT P-14,Rajiv Gandhi Infotech Park MIDC Phase 1, Hinjawadi, Pune – 411057 Tel - +91 20 22933441/2/3 | www.isquareit.edu.in | info@isquareit.edu.in

Computational Problems Sorting Searching Traversing Shortest paths in a graph Minimum spanning tree Primarily testing Traveling salesman problem Chess Towers of Hanoi Knapsack problem Hope Foundation’s International Institute of Information Technology, I²IT P-14,Rajiv Gandhi Infotech Park MIDC Phase 1, Hinjawadi, Pune – 411057 Tel - +91 20 22933441/2/3 | www.isquareit.edu.in | info@isquareit.edu.in

PROPERTIES OF AN ALGORITHM An algorithm takes zero or more inputs An algorithm results in one or more outputs All operations can be carried out in a finite amount of time An algorithm should be efficient and flexible It should use less memory space as much as possible An algorithm must terminate after a finite number of steps. Each step in the algorithm must be easily understood for some reading it An algorithm should be concise and compact to facilitate verification of their correctness. Hope Foundation’s International Institute of Information Technology, I²IT P-14,Rajiv Gandhi Infotech Park MIDC Phase 1, Hinjawadi, Pune – 411057 Tel - +91 20 22933441/2/3 | www.isquareit.edu.in | info@isquareit.edu.in

Iterative Algorithm Repetition execution can be named as iterative Iteration can be achieved by the looping statements. Start of the Loop initializing i=0 Condition ( for termination of the loop) Body of the loop End loop A problem can be solved by iterative or recursive process . e.g. Factorial of a number Hope Foundation’s International Institute of Information Technology, I²IT P-14,Rajiv Gandhi Infotech Park MIDC Phase 1, Hinjawadi, Pune – 411057 Tel - +91 20 22933441/2/3 | www.isquareit.edu.in | info@isquareit.edu.in

Real-World Applications VLSI chips Machine learning Networking Compilers Computer graphics: movies, video games Routing messages in the Internet Searching the Web Distributed file sharing Data Mining Image Processing NLP Hope Foundation’s International Institute of Information Technology, I²IT P-14,Rajiv Gandhi Infotech Park MIDC Phase 1, Hinjawadi, Pune – 411057 Tel - +91 20 22933441/2/3 | www.isquareit.edu.in | info@isquareit.edu.in

Reference [1] https://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&uact=8&ved=2ahUKEwiM04uXzJzfAhUOU30KHSNdB6YQFjABegQICRAC&url=http%3A%2F%2Fwww.avce.edu.in%2FDAA-Unit1.ppt&usg=AOvVaw1_WpMmPc816Wrzz3sqYZvL Hope Foundation’s International Institute of Information Technology, I²IT P-14,Rajiv Gandhi Infotech Park MIDC Phase 1, Hinjawadi, Pune – 411057 Tel - +91 20 22933441/2/3 | www.isquareit.edu.in | info@isquareit.edu.in

THANK YOU !! For further information please contact Dr. S. Mishra sashikalam@isquareit.edu.in | hodce@isquareit.edu.in Department of Computer Engineering Hope Foundation’s International Institute of Information Technology, I2IT P-14, Rajiv Gandhi Infotech Park, MIDC Phase I, Hinjawadi, Pune – 411 057 Phone - +91 20 22933441 www.isquareit.edu.in | info@isquareit.edu.in