/
skip_list.rst
42 lines (31 loc) · 1.04 KB
/
skip_list.rst
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
.. _skip_list:
Skip List
=========
.. automodule:: extra.lists.skip_list
:noindex:
:members:
:special-members:
:exclude-members: flip_coin, search_sorted, SkipNode, SkipList
.. image:: ../../_images/lists/skip_list.gif
:align: center
:height: 650
⏱ Time-Complexity
-------------------
The following table sums up all the different public functionality in this
class and also provides the worst-case time complexity along side with the
optimal time complexity that I will try to reach in future releases Insha'Allah.
Generally, we are going to use the following indicators in the table:
- **n** is the number of elements currently in the skip list.
- **k** is the value of a parameter.
- **h** is the height of the skip list.
.. csv-table::
:file: ../../_files/lists/skip_list.csv
:header-rows: 1
:widths: 10, 70, 10, 10
☕️ API
-------
Here are all of the public methods that can be used with `SkipList()` objects:
.. autoclass:: extra.lists.skip_list.SkipList
:members:
:special-members:
:exclude-members: