Prior Knowledge Especially Algorithms#
In this textbook, it is assumed that you have programmed a little bit in a programming language of some kind, possibly Python. Moving to a new language is exciting, and helps understand an important essence of Computing – namely, computing is not based on a particular programming language – computing is based on the concept of an algorithm.
Practice Questions#
What is an algorithm?
Give an example of an algorithm that takes you from waking up to finish eating your breakfast. What are some problems with this algorithm?
Give an example of an algorithm for finding the length of the third side of a right triangle. What are some problems with this algorithm?
Compare the two tasks in the previous two questions. Which might be easier for a computer to do? Why? Which might be easier for you to do? Why? Write a conclusion about computers versus humans.
It is important to learn how to code in Java, but it is equally important to learn how to put the theory of algorithms and data structures into practice. This chapter is devoted to learning basic Java quickly and provides a short snapshot into the Java world.