Lecture 1 Flashcards

1
Q

What is computer science?

A
  • Computer science is not just coding.
  • Computer science is about using the underlying principles that allow for the design and implementation of efficient programs.
  • These issues exist regardless of the language used.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Insertion sort

A

You keep the sorted part of your data separate from the unsorted part, placing each newly sorted object into the correct location into the currently sorted section.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Quicksort

A
  • This method works by picking an approximate “median” for the data you want to sort, then throwing all the rest of the data to either the “high” side or the “low” side.
  • Once that’s complete, you sort the “high” side and the “low” side in the same manner.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Origins of C

A
  • C is a by-produce of UNIX, developed at Bell Lab by KenThompson, Dennis Ritchie and others.
  • Thompson designed a small language named “B”.
  • “B” was based on BCPL, a system programming language developed in the mid-1960s.
  • By 1971, Ritchie began to develop an extended version of “B” language.
  • He called the new language “NB” (New B) at first.
  • As the NB language began to diverge more from B, he changed its name to C.
  • The C language was stable enough by 1973 that UNIX could be re-written in C.
  • C Became popular during the 1980s, both for UNIX programming and for developing applications for personal computers.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Origins of C++

A
  • Bjarne Stroustrup, a Danish and British trained computer scientist, began his work (in AT&T) on C++’s predecessor “C with Classes” in 1979.
  • The motivation for creating a new language originated from Stroustrup’s experience in programming for his Ph.D. thesis.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly