CS9617 Notes on Output Analysis