I recently published an article in Constitutional Forum that analyses the rules of government formation in Canada. You can find the article here (click where it says pdf):
To address the current debate about who governs after the 21 October election, I’ve updated my tables: