Patrice Koehl
Department of Computer Science
Genome Center
Room 4319, Genome Center, GBSF
451 East Health Sciences Drive
University of California
Davis, CA 95616
Phone: (530) 754 5121
koehl@cs.ucdavis.edu




Data, Logic, and Computing: Winter 2024


Counting


One of the first things we learn in mathematics is how to count. Now we want to count large collections of objects quickly, correctly, and precisely. Counting problems include for example:

  • How many passwords can you form if they are limited to 5 characters?
  • How many anagrams are there of the word "mathematics?
  • How many bitstrings of length 16 that start with 1 and end with 00 can you form?
  • How many committees of 3 members can you form in a club of 18 menbers?
In this chapter, we cover those counting problems using both a formal set theory approach and an intuitive approach. We condired the product and sum rules, the pigeonhole principle, and combinatorics.




Lecture Notes


Download document:

PDF document (click to download)
or
Latex source file (click to download)
or
Notes from lectures themselves:
  • Handwritten Notes from class on 3/06: Set theory PDF document
  • Handwritten Notes from class on 3/08: Set theory / Counting PDF document
  • Handwritten Notes from class on 3/11: Counting PDF document


Further Reading









  Page last modified 15 March 2024 http://www.cs.ucdavis.edu/~koehl/