# Table

A Table is an ***unordered collection of records***. Each record consists of a key-value pair. Within the same table, keys are unique. That is only one record in the table may have a certain key. Values do not have to be unique.

### Table operations <a href="#table-operations" id="table-operations"></a>

A table supports a subset of the following operators (though sometimes it may be combined in design)

* initialize - Table is initialized to an empty table
* isEmpty - tests if table is empty
* isFull - tests if table is full
* insert - add a new item with key:value to the table
* delete - given a key remove the record with a matching key
* update - given a key:value pair change the record in table with matching key to the value
* find - given a key find the record
* enumerate - process/list/count all items in the table


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://catherine-leung.gitbook.io/data-strutures-and-algorithms/table.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
