Array

  • Dense list (consecutive memory address)
  • Pros:
    • Direct access,
  • Cons:
    • High overhead when insertion / detetion frequently happened.

Deletion without shift

  • Insertion: , not changed.
  • Deletion:
  • NO MORE direct access. Need to calculate specific index from head address.

Polynomials

多項式求值

  • Horner's Rule
    • More efficeint

results matching ""

    No results matching ""