File: README.txt

package info (click to toggle)
python-bitarray 3.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,288 kB
  • sloc: python: 11,456; ansic: 7,657; makefile: 73; sh: 6
file content (23 lines) | stat: -rw-r--r-- 509 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Ilan Schnell
January, 2023


Here are two different implementations of sparse bitarrays.

Makefile:
    Run:
    $ make test

common.py
    Common functionally used by both the flips and ones implementation.

flips.py
    The bitarray is represented by a list of positions at which a bit changes
    from 1 to 0 or vice versa.

ones.py:
    The bitarray is represented by a (sorted) list containing the position
    of 1 bits (as well as the length of the array).

tests.py
    Tests for both implementations