q2: quick sort
q3: karger's min cut algorithm
q4: strongly connected components,finishing time iterations
q5: dijkstra's shortest path
q6: two sum