2024-05-22T22:45:42+03:00[Europe/Moscow] en true <p>removes the issue of code redundancy from the code-base</p>, <p>moves the statements that are duplicated at the end of the true and false blocks of an if-statement to after the if-statement</p>, <p>the statements can only be factored to before the beginning of the if statement if the statement(s) do not influence the condition (important) of the if-statement</p> flashcards
Lecture 18

Lecture 18

  • removes the issue of code redundancy from the code-base

    Factorisation of statements

  • moves the statements that are duplicated at the end of the true and false blocks of an if-statement to after the if-statement

    Bottom Factorisation

  • the statements can only be factored to before the beginning of the if statement if the statement(s) do not influence the condition (important) of the if-statement

    Top-factorisation