zoukankan      html  css  js  c++  java
  • Always review

    Data structures

    A data structure is a way to store and organize data in order to facilitate access and modifications.

    Loop invariants

    We use loop invariants to help us understand why an algorithm is correct. We must show three things about a loop invariant:

    Initialization: It is true prior to the first iteration of the loop.

    Maintenance: If it is true before an iteration of the loop, it remains true before the next iteration.

    Termination: When the loop terminates, the invariant gives us a useful property that helps show that the algorithm is correct.

  • 相关阅读:
    10.18
    10.16~10.17笔记
    JS
    10.8~10.11
    9.28~9.29
    9.27 代码笔记
    代码复习(9.26)
    9.19 链家
    9.18笔记
    9.17 定位
  • 原文地址:https://www.cnblogs.com/Patt/p/5814221.html
Copyright © 2011-2022 走看看