Computer science is the study of algorithms, including their formal properties, hardware and linguistic realizations, and applications. An algorithm is a step-by-step process that is guaranteed to solve a specific problem in a finite number of steps using well-defined operations like sequential, conditional, and iterative instructions. Algorithms are important because specifying an algorithm allows a problem to be automated and solved by a computing agent in a mechanical way without needing to understand the concepts underlying the problem.
Download as PPTX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
145 views
An Introduction To Computer Science
Computer science is the study of algorithms, including their formal properties, hardware and linguistic realizations, and applications. An algorithm is a step-by-step process that is guaranteed to solve a specific problem in a finite number of steps using well-defined operations like sequential, conditional, and iterative instructions. Algorithms are important because specifying an algorithm allows a problem to be automated and solved by a computing agent in a mechanical way without needing to understand the concepts underlying the problem.
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 19
Lecture 1
An Introduction to Computer Science
Misconception of Computer Science The common misconception about computer science 1. Computer science is the study of computers 2. Computer science is the study of how to write a computer program 3. Computer science is the study of the uses and applications of computers and softwares. Introduction Computer Science is one of the disciplines of modern science under which, we study about the various aspects of computer technologies, their development, and their applications in the present world. Likewise, Computer Science includes a wide range of topics such as the development of Computer Technology (hardware and software), application of Computer technology in today’s life, information technology, computer threat, computer security, etc The Definition of Computer Science The Gibbs and Tucker definition of computer science the study of algorithms, including 1. Their formal and mathematical properties 2. Their hardware realizations 3. Their linguistic realizations 4. Their applications The Definition of Computer science The Gibbs and Tucker definition says that it is the task of the computer scientist to design and develop algorithms to solve a range of important problems. This design process includes the following operations: • Formal and mathematical properties: Studying the behavior of algorithms to determine if they are correct and efficient • Hardware realizations: Designing and building computer systems that are able to execute algorithms The Definition of Computer Science • Linguistic realizations: Designing programming languages and translating algorithms into these languages so that they can be executed by the hardware • Applications: Identifying important problems and designing correct and efficient software packages to solve these problems Algorithm • Dictionary definition A procedure for solving a mathematical problem in a finite number of steps that frequently involves repetition of an operation. A step-by-step method for accomplishing some task. • Informal description: an algorithm is an ordered sequence of instructions that is guaranteed to solve a specific problem. It is a list that looks something like this: STEP 1: Do something STEP 2: Do something STEP 3: Do something ... ... STEP N: Stop, you are finished Sequential operations : A sequential instruction carries out a single well-defined task. When that task is finished, the algorithm moves onto the next operation. Sequential operations are usually expressed as simple declarative sentences. Example • Add 1 cup of butter to the mixture in the bowl. • Subtract the amount of the check from the current account balance. • Set the value of x to 1. Conditional operations : These are the “question-asking” instructions of an algorithm. They ask a question, and the next operation is selected on the basis of the answer to that question. Example • If the mixture is too dry, then add one-half cup of water to the bowl. • If the amount of the check is less than or equal to the current account balance, then cash the check; otherwise, tell the person that the account is overdrawn. • If x is not equal to 0, then set y equal to 1/x; otherwise, print an error message that says you cannot divide by 0. Iterative operations : These are the “looping” instructions of an algorithm. They tell us not to go on to the next instruction but, instead, to go back and repeat the execution of a previous block of instructions. Example • Repeat the previous two operations until the mixture has thickened. • While there are still more checks to be processed, do the following five steps. • Repeat steps 1, 2, and 3 until the value of y is equal to +1. Why are formal algorithms so important ?
If we can specify an algorithm to solve a problem, then we
can automate its solution. • Computing Agent - 1. In computer science terminology, the machine, robot, person, or thing carrying out the steps of the algorithm 2. Does not need to understand the concepts or ideas underlying the solution. A Formal Definition of Algorithm Algorithm A well-ordered collection of unambiguous and effectively computable operations that, when executed, produces a result and halts in a finite amount of time. Unambiguous Operation An unambiguous operation is one that can be understood and carried out directly by the computing agent without further simplification or explanation. Primitive Operation When an operation is unambiguous, we call it a primitive operation, or simply a primitive of the computing agent carrying out the algorithm. Effectively computable Computational process exits that allow computing agent to complete that operation successfully. The result must be produced after the execution of a finite number of operations Infinite loop •The algorithm has no provisions to terminate • A common error in the designing of algorithm The Importance of Algorithm in Problem solving • Algorithm solution can be 1. Encoded into some appropriate language 2. Given to a computing agent to execute • The Computing Agent 1.Would mechanically follow these instructions and successfully complete the task 2.Don’t need to understand the creative process that went into discovery of solution 3.Don’t need to understand the concepts that underlines problems
Python Machine Learning: Machine Learning Algorithms for Beginners - Data Management and Analytics for Approaching Deep Learning and Neural Networks from Scratch
Python Machine Learning: Machine Learning Algorithms for Beginners - Data Management and Analytics for Approaching Deep Learning and Neural Networks from Scratch