Implementation of the basic algorithms and data structures in Python