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

Method __init__

other/davis_putnam_logemann_loveland.py:34–39  ·  view source on GitHub ↗

Represent the literals and an assignment in a clause."

(self, literals: list[str])

Source from the content-addressed store, hash-verified

32 """
33
34 def __init__(self, literals: list[str]) -> None:
35 """
36 Represent the literals and an assignment in a clause."
37 """
38 # Assign all literals to None initially
39 self.literals: dict[str, bool | None] = dict.fromkeys(literals)
40
41 def __str__(self) -> str:
42 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected