May 13, 2018

[ACCU 2018] 105 STL Algorithms in Less Than an Hour - Jonathan Boccara

105 STL Algorithms in Less Than an Hour - Jonathan Boccara [ACCU 2018]

http://en.cppreference.com/w/cpp/algorithm

Why algorithms?

  • off-by-one error
  • empty loops
  • naive complexity

STL algorithms can make code simpler

  • Replace for-loops by the right algorithm

Improve code expressiveity

  • Understand common vocabulary
  • Write in the common vocabulary    

Understand technical aspects

  • complexity
  • pre/post requisites
  • look into the implementation    

Write our own algorithms

  • Combine existing algorithms together
  • Enrich a family
  • Start a new family

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.