# uncompressedSegmentedTrie

> **uncompressedSegmentedTrie**<`V`>(`entries?`): [`SegmentedTrie`](/reference/knotkit/trie/interfaces/segmentedtrie/)<`V`>

Defined in: [packages/trie/src/uncompressed-segmented-trie.ts:267](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/trie/src/uncompressed-segmented-trie.ts#L267)

Create a [SegmentedTrie](/reference/knotkit/trie/interfaces/segmentedtrie/) backed by one node per distinct segment prefix, each holding its children in a `Map` keyed by the next segment.

Shared key prefixes are stored once and looked up once, which is what turns longest-prefix resolution into a single top-down walk. Prefer [compressedSegmentedTrie](/reference/knotkit/trie/functions/compressedsegmentedtrie/) when keys are deep or mostly non-branching, which is when packing segment runs into edge labels pays for its split bookkeeping; prefer a plain `Map<string, V>` keyed on the joined string when only exact matches are needed.

## Type Parameters

### V

`V`

## Parameters

### entries?

`Iterable`<[`SegmentedTrieEntry`](/reference/knotkit/trie/interfaces/segmentedtrieentry/)<`V`>, `any`, `any`>

Key-value pairs to store, in iteration order. A repeated key overwrites the earlier value, mirroring `Map`, and entries before an invalid one stay stored.

## Returns

[`SegmentedTrie`](/reference/knotkit/trie/interfaces/segmentedtrie/)<`V`>

## Throws

When an entry key is not an array of strings.
