Skip to content
One hour with George, then a written plan the next working day. Book yours.

A college computer science tutor, one to one

George Li teaches college computer science fundamentals one to one by video: data structures, algorithms and the reasoning about cost that your course tests.

For students and parents planning test prep or coursework: one hour with George Li, one to one by video, is $180, $200 or $160, by subject. You leave with a written plan within one working day.

Book your first session

What a college computer science fundamentals course typically covers

Courses differ in language and emphasis, so the syllabus decides the plan. Most courses move through these blocks.

  • Algorithm analysis. Counting steps, big-O notation, best and worst cases, and how to compare two solutions to one problem.
  • Arrays, linked lists, stacks and queues. How each is stored, what each operation costs and which problems each one fits.
  • Hash tables and trees. Hashing and collisions, binary search trees and why keeping a tree balanced matters.
  • Sorting and searching. Binary search, insertion, merge and quick sort, and what each costs in the best and worst case.
  • Recursion and divide and conquer. Writing a recursive solution, tracing it and solving the recurrence that describes its cost.
  • Graphs. Representing a graph, breadth-first and depth-first search and shortest paths.
  • Discrete mathematics. Logic, sets, counting and proof by induction, as the course uses them to justify an algorithm.
  • How a computer runs a program. Binary and two's complement, memory and the stack, and what happens between the code you write and the result you see.

Where students usually get stuck

Students rarely get stuck on what a data structure is. They get stuck choosing one and defending the choice. Sessions practice the question every exam asks: what operations does this problem need, how often, and what does each one cost in this structure?

The other gap is analysis and proof written in words. A running-time argument or an induction proof is graded on whether each step follows from the last. George has you say each step aloud and asks what justifies it.

What a session looks like

  1. You bring the question. A structure you cannot choose between, an analysis that does not come out or an exam that is coming. Send the syllabus before your first session so the plan follows your course.
  2. The idea first. George explains what a structure or an algorithm is trying to do with a small input you can work by hand, before any code or notation.
  3. You solve, George asks. You work a problem or write an argument out loud on a shared screen. George asks why each step holds and stops you at the first claim you have not justified.
  4. Mistakes first. George goes back over the problems that went wrong, so the next session starts from them.

Two computer science problems, solved the way a session solves them

These are our own problems. Each one shows the habit a session builds: count the work exactly, then name its growth.

Counting the steps of a nested loop

A program runs for i from 1 to n, and inside it runs for j from 1 to i, doing one unit of work each time. How many units does it do, and what is its running time in big-O terms?

  1. Count the work for each value of i: the inner loop runs i times.
  2. Add over all i: 1 + 2 + 3 + ... + n.
  3. Use the sum formula: 1 + 2 + ... + n = n(n + 1) / 2.
  4. Check with a small case: for n = 4, 1 + 2 + 3 + 4 = 10 and 4 * 5 / 2 = 10.
  5. Name the growth: n(n + 1) / 2 = (n^2 + n) / 2, and the n^2 term dominates, so the running time is O(n^2).

The program does n(n + 1) / 2 units of work, so for n = 100 that is 5,050, and its running time is O(n^2). The inner loop is shorter than n, but only by a constant factor, and a session makes the student say why the constant does not change the class.

How many comparisons does binary search need?

A sorted array holds 2,000 items. What is the largest number of comparisons binary search can need to find an item or report that it is absent?

  1. Name what one comparison does: it checks the middle item and discards half of the remaining range.
  2. Turn that around: with k comparisons, the largest range the search can finish is 2^k - 1 items.
  3. Test k = 10: 2^10 - 1 = 1,023, which is less than 2,000, so ten comparisons are not always enough.
  4. Test k = 11: 2^11 - 1 = 2,047, which is at least 2,000, so eleven always are.

Eleven comparisons, which is floor(log2 2000) + 1. A linear scan could need 2,000, and the gap grows with the list. The condition the student must state is that the array is sorted, because the whole argument depends on it.

What George does and does not do

When you bring a graded problem, George works a different one of the same kind with you, and you then solve yours on your own.

Book

Sessions are 60 or 90 minutes by video. Start with a first session; prices and package sizes are on the college coursework tutoring page and the packages page. Other college courses are listed under college courses.