What Is Computer Science?

What Is Computer Science?

What is Computer Science? Instructor: Drew Guarnera CS 102: Multimedia Computing 1 Computer Science Defined? • “computer science” —which, actually is like referring to surgery as “knife science” - Prof. Dr. Edsger W. Dijkstra • “A branch of science that deals with the theory of computation or the design of computers” - Webster Dictionary • Computer science "is the study of computation and information” - University of York • “Computer science is the study of process: how we or computers do things, how we specify what we do, and how we specify what the stuff is that we’re processing.” - Your Textbook Instructor: Drew Guarnera CS 102: Multimedia Computing 2 Computer Science in Reality The study of using computers to solve problems. Instructor: Drew Guarnera CS 102: Multimedia Computing 3 Fields of Computer Science • Software Engineering • Multimedia (Game Design, Animation, Data Visualization) • Web Development • Networking • Big Data / Machine Learning / AI • Bioinformatics • Robotics • Internet of Things • … Instructor: Drew Guarnera CS 102: Multimedia Computing 4 Computers Rule the World! • Shopping • Communication / Social Media • Work • Entertainment • Vehicles • Appliances • Banking • … Instructor: Drew Guarnera CS 102: Multimedia Computing 5 Overview of the Couse • Learn a programming language • Develop algorithms and write programs to implement them • Understand how computers store data and multimedia • Have fun! Instructor: Drew Guarnera CS 102: Multimedia Computing 6 Programming Languages • How we communicate with computers in a way they understand • Lots of different languages, some with special purposes • How we write programs to implement algorithms Instructor: Drew Guarnera CS 102: Multimedia Computing 7 What’s an Algorithm? Input Algorithm Output • An algorithm is a finite series of instructions applied to an input to produce output. • Computer programs are made up of algorithms. Instructor: Drew Guarnera CS 102: Multimedia Computing 8 The “Recipe” Analogy Input Output Algorithm Instructor: Drew Guarnera CS 102: Multimedia Computing 9 But Computers Don’t Understand Cake! Instructor: Drew Guarnera CS 102: Multimedia Computing 10 How We Use Numbers Everything is a power of 10! Example: 181 Instructor: Drew Guarnera CS 102: Multimedia Computing 11 How We Use Numbers Everything is a power of 10! Example: 181 103 102 101 100 0 1 8 1 1000*0 + 100 * 1 + 10*8 + 1*1 = 181 Instructor: Drew Guarnera CS 102: Multimedia Computing 12 How Computers Store Information Everything is stored in binary as a series of 1’s and 0’s 181 1 0 1 1 0 1 0 1 Bit Nibble Byte 27 26 25 24 23 22 21 20 1 0 1 1 0 1 0 1 128*1 + 64*0 + 32*1 + 16*1 + 8*0 + 4*1 + 2*0 + 1*1 = 181 Instructor: Drew Guarnera CS 102: Multimedia Computing 13 Storing Complex Data Storing text and other more complex information requires an encoding format to describe the data in binary/numerical representation. WAV Audio Format ASCII Decimal Character 65 A 66 B 67 C 68 D 69 E 70 F … … Instructor: Drew Guarnera CS 102: Multimedia Computing 14 You Try! ASCII • Let’s spell the word “ACE” in binary (all capital letters) Decimal Character 65 A • First convert the letter to the decimal value 66 B • A = 65 67 C • Now convert 65 to binary 68 D 69 E 70 F 27 26 25 24 23 22 21 20 … … 0 0 0 0 0 0 0 0 Instructor: Drew Guarnera CS 102: Multimedia Computing 15 You Try! ASCII • Let’s spell the word “ACE” in binary Decimal Character 65 A • First convert the letter to the decimal value 66 B • A = 65 67 C • Now convert 65 to binary 68 D 69 E 70 F 27 26 25 24 23 22 21 20 … … 0 0 0 0 0 0 0 0 27 = 128 That is far too large. Leave it zero. Instructor: Drew Guarnera CS 102: Multimedia Computing 16 You Try! ASCII • Let’s spell the word “ACE” in binary Decimal Character 65 A • First convert the letter to the decimal value 66 B • A = 65 67 C • Now convert 65 to binary 68 D 69 E 70 F 27 26 25 24 23 22 21 20 … … 0 1 0 0 0 0 0 0 26 = 64 That is less than or equal to 65. Let’s mark this with a 1. Instructor: Drew Guarnera CS 102: Multimedia Computing 17 You Try! ASCII • Let’s spell the word “ACE” in binary Decimal Character 65 A • First convert the letter to the decimal value 66 B • A = 65 67 C • Now convert 65 to binary 68 D 69 E 70 F 27 26 25 24 23 22 21 20 … … 0 1 0 0 0 0 0 1 All we need now is a 1 (65 – 64 = 1). Let’s mark the 20 position with a 1. Instructor: Drew Guarnera CS 102: Multimedia Computing 18 You Try! ASCII • Let’s spell the word “ACE” in binary Decimal Character 65 A • First convert the letter to the decimal value 66 B • A = 65 67 C • Now convert 65 to binary 68 D 69 E 70 F 27 26 25 24 23 22 21 20 … … 0 1 0 0 0 0 0 1 27(0) + 26(1) + 25(0) + 24(0) + 23(0) + 22(0) + 21(0) + 20(1) = 65 Instructor: Drew Guarnera CS 102: Multimedia Computing 19 You Try! ASCII • A = 65 = 01000001 Decimal Character 65 A • Try to convert capital C and E to binary on your own! 66 B 67 C 68 D 69 E 70 F … … Instructor: Drew Guarnera CS 102: Multimedia Computing 20.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    20 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us