• Skip to main content
  • Skip to primary sidebar

Code and Gadgets

You are here: Home / Home

Definitions of Big-Oh, Big Omega and Theta Notation

June 14, 2017 by Chris

Big-Oh, Big Omega (ฮฉ) and Theta (ฮ˜) notation is commonly seen in analysis of algorithm running times. But many programmers don’t really have a good grasp of what the notation actually means. In this article you’ll find the formal definitions of each and some graphical examples that should aid understanding. Big-Oh The function that needs […]

Filed Under: Algorithms

Karatsuba Multiplication in Python

June 7, 2017 by Chris

The Karatsuba multiplication algorithm is named after the Russian mathematician Anatoly Karatsuba. It uses a divide and conquer approach that gives it a running time improvement over the standard “grade-school” method. Read on for Python implementations of both algorithms and a comparison of their running time. The problem You are given two integers x and […]

Filed Under: Algorithms

Primary Sidebar

Recent Posts

  • Definitions of Big-Oh, Big Omega and Theta Notation
  • Karatsuba Multiplication in Python

© 2017–2024 ยท codeandgadgets.com