DataStructure

DataStructure#

class DataStructure#

Bases: ComplexityObject

Base class for all data structures.

__init__()#

Methods

__init__()

increment_n_ops([increment])

Convenience method to increment n_ops count of the given complexity object.

reset_n_ops()

Convenience method to reset n_ops count of the given complexity object.

Attributes

n_ops

rtype:

int

name

rtype:

str

space_complexity

rtype:

str

increment_n_ops(increment=1)#

Convenience method to increment n_ops count of the given complexity object.

Return type:

None

property n_ops: int#
Return type:

int

abstract property name: str#
Return type:

str

reset_n_ops()#

Convenience method to reset n_ops count of the given complexity object.

Return type:

None

abstract property space_complexity: str#
Return type:

str