Startseite › Datentypen › H-Lib-Container Hilfe zum PBXB64-Compiler

H-Lib SkipList

A probabilistic skip list storing unique sorted LONG keys with expected O(log n) add, remove, and contains operations.

Kategorie: H-Lib-Container | Zertifizierung: [ZERTIFIZIERT GETESTET]

Beschreibung

A probabilistic skip list storing unique sorted LONG keys with expected O(log n) add, remove, and contains operations.

Kind: Container | Category: H-Lib Native Containers

PBXB64 Status: AVAILABLE

PBXB64 Certification: [CERTIFIED TESTED]

Description

This H-Lib container is implemented in native C support code and exposed through PBXB64 BASIC container syntax. The examples below are focused usage patterns; keep handles valid, release each container with its Final method, and check counts or return values when a method can fail.

Methods

MethodSignatureReturnsDescription
News.NewLNSKIPLISTAllocate a new empty skiplist.
Finals.FinalnoneFree the skiplist.
Validates.ValidateLONGNon-zero if the handle is valid.
Clears.ClearnoneRemove all keys.
Counts.CountLONGNumber of keys.
Adds.Add keynoneInsert a key.
Removes.Remove keynoneRemove a key.
Containss.Contains keyLONGNon-zero if the key is present.
Firsts.FirstQUADReturn the smallest key (0 if empty).
Nexts.Next keyQUADReturn the next larger key (0 if none).
Emptys.EmptyLONGNon-zero if the skiplist is empty.

Validation Evidence

Validation evidence: H-Lib container behavior is exercised by registered BASIC container validation programs and the embedded H-Lib object set used by the single-EXE validation gate.

PBXB64-Prüfung

Diese Referenzseite soll durch ein fokussiertes Compile- oder Laufzeitbeispiel belegt sein. Das Beispiel soll Eingaben, erwartete Ausgabe oder Exit-Code und erforderliche Windows-Ressourcen oder Include-Dateien nennen.

Übersichtshinweise

Allgemeine Übersichtsseiten sollten trotzdem sagen, welche Familie gemeint ist, welche konkreten Befehlsseiten die Implementierung tragen und welche Formen nur der Navigation dienen. So bleibt die Seite detailliert genug, ohne so zu tun, als wäre sie eine vollständige Befehlsreferenz.

Beispiel

LOCAL s AS LNSKIPLIST
s = s.New
s.Add 3
s.Add 1
PRINT s.First ' 1
s.Final