Skip to content

Commit e537db2

Browse files
committed
feat(dsa, api): ✨ Introduce core DSA and agency search/priority services
Implement foundational Data Structures and Algorithms (DSA) in `@foia-stream/shared` and integrate them into the `api` service layer for enhanced performance: - **Trie**: Used in `AgencySearchService` for O(k) prefix-based autocomplete on agency names and abbreviations. - **Priority Queue (Binary Heap)**: Used in `RequestPriorityService` for O(log n) management of FOIA request queues based on deadlines and urgency. - **Graph**: Implemented for managing and navigating complex agency hierarchies. - **Rabin-Karp**: Added for efficient string pattern matching (e.g., future document search/PII detection). This change significantly improves the efficiency of core application features like search and request prioritization.
1 parent d90863c commit e537db2

38 files changed

+3559
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,4 @@ drizzle/meta/
7070
.drizzle/
7171

7272
./apps/api/data/*
73+
./apps/api/data/test*

apps/api/data/foia-stream.db-shm

0 Bytes
Binary file not shown.

apps/api/data/foia-stream.db-wal

1.14 MB
Binary file not shown.
4 KB
Binary file not shown.
32 KB
Binary file not shown.
427 KB
Binary file not shown.
4 KB
Binary file not shown.
32 KB
Binary file not shown.
427 KB
Binary file not shown.
4 KB
Binary file not shown.

0 commit comments

Comments
 (0)