0
$\begingroup$

I'm trying to say this in my paper: "$M$ is a key-value store, where 1) all keys are unique, 2) $k \in M$ means that the $k$ key exists in the store, 3) $M + (k, v)$ is a new store equal to $M$ but the key $k$ is assigned to $v$, 4) $M - k$ is a new store equal to $M$ but without the $k$ key.

Is it possible to omit all this text and just say that "$M$ is something," referring to some well-known definition of such structures?

$\endgroup$
1
  • $\begingroup$ The proper technical name for this is Associative Array (as mentioned in an answer below). More common technical names include hash tables, hash, map, dictionary and array (PHP & TCL) $\endgroup$
    – slebetman
    Commented Jan 29, 2023 at 12:21

2 Answers 2

2
$\begingroup$

You might be looking for a dictionary. Common implementations are hash tables and binary search trees.

$\endgroup$
4
$\begingroup$

Another common name for such a "map" data structure is Map. That's what it is called in C++, Java, ECMAScript, PHP, Go, Matlab, Rust, Scala, Clojure, Elixir, OCaml, F#, Racket, Kotlin, Dart, Ada, and Haskell, to name just a few.

The name Map is also used in Computer Science.

Yet another common name is Associative Array.

A slightly less common name is Table. That's what it is called in Lua. The term Table also appears in terms like Hash Table.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.