Update relative frequency of { p , q , r , s }
if ( ( p , q ) , ( r , s ) ) in mp : NEW_LINE INDENT mp [ ( p , q ) , ( r , s ) ] += 1 NEW_LINE DEDENT else : NEW_LINE INDENT mp [ ( p , q ) , ( r , s ) ] = 1 NEW_LINE DEDENT