CSIS1122A Computer Programming II (CS, CE, Minor & 2nd Major)
In the coming 40 mins Introduce ourselves What to learn How to learn
Lecturer: CHAN Ho Leung () (Ho Leung, Dr. Chan) B.Eng(CE), PhD, all in HKU Email: [email protected] Consultatio
Introduction to Linux
Welcome to Linux!
In the coming 1 hour What is Linux? Why study Linux? How to work in Linux? A complete working example
What is Linux?
Operating system like Windows, MacOS, etc resource management CSIS0230 (Principles of Operating Sy
Recursion (part a)
In the coming 1 hour What is recursion? Advantages of recursion
Given 6 characters, print all permutations of 4 characters using only 1 for-loop? Divide-and-conquer: Can it be reduced to some easier problems? Input
Recursion (Part b)
Objectives 1. Operations behind recursion 2. Disadvantages of recursion 3. Two speed-up techniques: memorization and backtracking
How is recursion carried out?
#include <iostream> using namespace std; /pre: given x, n >= 1 /post: return