MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / __init__

Method __init__

data_compression/lz77.py:64–67  ·  view source on GitHub ↗
(self, window_size: int = 13, lookahead_buffer_size: int = 6)

Source from the content-addressed store, hash-verified

62 """
63
64 def __init__(self, window_size: int = 13, lookahead_buffer_size: int = 6) -> None:
65 self.window_size = window_size
66 self.lookahead_buffer_size = lookahead_buffer_size
67 self.search_buffer_size = self.window_size - self.lookahead_buffer_size
68
69 def compress(self, text: str) -> list[Token]:
70 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected