{"id":6619,"date":"2026-04-13T11:50:34","date_gmt":"2026-04-13T11:50:34","guid":{"rendered":"http:\/\/the-codest.localhost\/dictionary\/lookup-table\/"},"modified":"2026-04-13T11:50:50","modified_gmt":"2026-04-13T11:50:50","slug":"uppslattartafla","status":"publish","type":"dictionary","link":"https:\/\/thecodest.co\/is\/dictionary\/lookup-table\/","title":{"rendered":"Leitarbor\u00f0"},"content":{"rendered":"<h1>Skilgreining leitart\u00f6flu<\/h1>\n<p>Leitarbor\u00f0, einnig \u00feekkt sem <a href=\"https:\/\/thecodest.co\/is\/blog\/hash-to-use-or-not-to-use\/\">skr\u00e1<\/a> bor\u00f0a e\u00f0a tengd fylki, er <a href=\"https:\/\/thecodest.co\/is\/blog\/app-data-collection-security-risks-value-and-types-explored\/\">g\u00f6gn<\/a> uppbygging sem geymir safn lykil-gildis para. H\u00fan er notu\u00f0 til a\u00f0 tengja safn lykla vi\u00f0 samsvarandi gildi \u00feeirra, sem gerir kleift a\u00f0 s\u00e6kja g\u00f6gn \u00e1 skilvirkan h\u00e1tt \u00fat fr\u00e1 tilteknum lykli.<\/p>\n<p>Leitarbor\u00f0i\u00f0 samanstendur af tveimur meginhlutum: lykli og gildi. Lykillinn er nota\u00f0ur til a\u00f0 bera kennsl \u00e1 g\u00f6gnin, en gildi\u00f0 er g\u00f6gnin sj\u00e1lf. Lykil-gildis p\u00f6rin eru geymd \u00ed fylki, \u00fear sem hver lykill er tengdur vi\u00f0 sitt samsvarandi gildi. Lyklar og gildi geta veri\u00f0 af hva\u00f0a gagnategund sem er, svo sem heilar t\u00f6lu, strengir e\u00f0a hlutir.<\/p>\n<p>Einn helsti kostur \u00feess a\u00f0 nota leitart\u00f6flu er hra\u00f0i og skilvirkni. H\u00fan gerir kleift a\u00f0 n\u00e1lgast g\u00f6gn \u00e1 st\u00f6\u00f0legum t\u00edma, \u00f3h\u00e1\u00f0 st\u00e6r\u00f0 gagnasafnsins. \u00deetta er vegna \u00feess a\u00f0 leitart\u00f6flan notar hash-fall til a\u00f0 tengja hvert lykilor\u00f0 vi\u00f0 einstakan v\u00edsit\u00f6lu \u00ed fylkinu, sem gerir leit a\u00f0 g\u00f6gnum mj\u00f6g hra\u00f0a.<\/p>\n<p>Leitarbor\u00f0 eru gjarnan notu\u00f0 \u00ed t\u00f6lvuforritun til verkefna eins og skyndiminni, skr\u00e1ningar og leit. \u00deau eru einnig notu\u00f0 \u00ed gagnagrunnum til a\u00f0 b\u00e6ta frammist\u00f6\u00f0u fyrirspurna me\u00f0 \u00fev\u00ed a\u00f0 b\u00faa til v\u00edsit\u00f6lur \u00e1 reiti sem oft er spurt um.<\/p>\n<p>Almennt s\u00e9\u00f0 eru leitart\u00f6flur \u00f3missandi gagnastr\u00fakt\u00far \u00ed t\u00f6lvunarfr\u00e6\u00f0i og eru v\u00ed\u00f0a nota\u00f0ar \u00ed m\u00f6rgum mismunandi forritum. \u00de\u00e6r bj\u00f3\u00f0a upp \u00e1 hra\u00f0a og skilvirka lei\u00f0 til a\u00f0 geyma og s\u00e6kja g\u00f6gn, sem gerir \u00fe\u00e6r a\u00f0 \u00f3missandi t\u00e6ki fyrir forritara og \u00fer\u00f3unara\u00f0ila.<\/p>","protected":false},"excerpt":{"rendered":"<p>L\u00e6r\u00f0u um leitart\u00f6flur, gagnal\u00edkan sem nota\u00f0 er til a\u00f0 tengja lykla vi\u00f0 gildi til skilvirkrar \u00f6flunar. Miki\u00f0 nota\u00f0 \u00ed forritun og gagnagrunnum. #gagnastj\u00f3rnun<\/p>","protected":false},"template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"class_list":["post-6619","dictionary","type-dictionary","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.3 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Lookup Table - The Codest<\/title>\n<meta name=\"description\" content=\"Learn about lookup tables, a data structure used to map keys to values for efficient retrieval. Widely used in programming and databases. #datamanagement\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/thecodest.co\/is\/ordabok\/uppslattartafla\/\" \/>\n<meta property=\"og:locale\" content=\"is_IS\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Lookup Table\" \/>\n<meta property=\"og:description\" content=\"Learn about lookup tables, a data structure used to map keys to values for efficient retrieval. Widely used in programming and databases. #datamanagement\" \/>\n<meta property=\"og:url\" content=\"https:\/\/thecodest.co\/is\/ordabok\/uppslattartafla\/\" \/>\n<meta property=\"og:site_name\" content=\"The Codest\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-13T11:50:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/thecodest.co\/app\/uploads\/2024\/06\/cover-image.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"675\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/dictionary\\\/lookup-table\\\/\",\"url\":\"https:\\\/\\\/thecodest.co\\\/dictionary\\\/lookup-table\\\/\",\"name\":\"Lookup Table - The Codest\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/#website\"},\"datePublished\":\"2026-04-13T11:50:34+00:00\",\"dateModified\":\"2026-04-13T11:50:50+00:00\",\"description\":\"Learn about lookup tables, a data structure used to map keys to values for efficient retrieval. Widely used in programming and databases. #datamanagement\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/dictionary\\\/lookup-table\\\/#breadcrumb\"},\"inLanguage\":\"is\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/thecodest.co\\\/dictionary\\\/lookup-table\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/dictionary\\\/lookup-table\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/thecodest.co\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Dictionary\",\"item\":\"https:\\\/\\\/thecodest.co\\\/sv\\\/ordbok\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Lookup Table\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#website\",\"url\":\"https:\\\/\\\/thecodest.co\\\/\",\"name\":\"The Codest\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/thecodest.co\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"is\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#organization\",\"name\":\"The Codest\",\"url\":\"https:\\\/\\\/thecodest.co\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"is\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/thecodest.co\\\/app\\\/uploads\\\/2024\\\/03\\\/thecodest-logo.svg\",\"contentUrl\":\"https:\\\/\\\/thecodest.co\\\/app\\\/uploads\\\/2024\\\/03\\\/thecodest-logo.svg\",\"width\":144,\"height\":36,\"caption\":\"The Codest\"},\"image\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/pl.linkedin.com\\\/company\\\/codest\",\"https:\\\/\\\/clutch.co\\\/profile\\\/codest\"]}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Leitarbor\u00f0 - The Codest","description":"L\u00e6r\u00f0u um leitart\u00f6flur, gagnal\u00edkan sem nota\u00f0 er til a\u00f0 tengja lykla vi\u00f0 gildi til skilvirkrar \u00f6flunar. Miki\u00f0 nota\u00f0 \u00ed forritun og gagnagrunnum. #gagnastj\u00f3rnun","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/thecodest.co\/is\/ordabok\/uppslattartafla\/","og_locale":"is_IS","og_type":"article","og_title":"Lookup Table","og_description":"Learn about lookup tables, a data structure used to map keys to values for efficient retrieval. Widely used in programming and databases. #datamanagement","og_url":"https:\/\/thecodest.co\/is\/ordabok\/uppslattartafla\/","og_site_name":"The Codest","article_modified_time":"2026-04-13T11:50:50+00:00","og_image":[{"width":1200,"height":675,"url":"https:\/\/thecodest.co\/app\/uploads\/2024\/06\/cover-image.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/thecodest.co\/dictionary\/lookup-table\/","url":"https:\/\/thecodest.co\/dictionary\/lookup-table\/","name":"Leitarbor\u00f0 - The Codest","isPartOf":{"@id":"https:\/\/thecodest.co\/#website"},"datePublished":"2026-04-13T11:50:34+00:00","dateModified":"2026-04-13T11:50:50+00:00","description":"L\u00e6r\u00f0u um leitart\u00f6flur, gagnal\u00edkan sem nota\u00f0 er til a\u00f0 tengja lykla vi\u00f0 gildi til skilvirkrar \u00f6flunar. Miki\u00f0 nota\u00f0 \u00ed forritun og gagnagrunnum. #gagnastj\u00f3rnun","breadcrumb":{"@id":"https:\/\/thecodest.co\/dictionary\/lookup-table\/#breadcrumb"},"inLanguage":"is","potentialAction":[{"@type":"ReadAction","target":["https:\/\/thecodest.co\/dictionary\/lookup-table\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/thecodest.co\/dictionary\/lookup-table\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/thecodest.co\/"},{"@type":"ListItem","position":2,"name":"Dictionary","item":"https:\/\/thecodest.co\/sv\/ordbok\/"},{"@type":"ListItem","position":3,"name":"Lookup Table"}]},{"@type":"WebSite","@id":"https:\/\/thecodest.co\/#website","url":"https:\/\/thecodest.co\/","name":"The Codest","description":"","publisher":{"@id":"https:\/\/thecodest.co\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/thecodest.co\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"is"},{"@type":"Organization","@id":"https:\/\/thecodest.co\/#organization","name":"The Codest","url":"https:\/\/thecodest.co\/","logo":{"@type":"ImageObject","inLanguage":"is","@id":"https:\/\/thecodest.co\/#\/schema\/logo\/image\/","url":"https:\/\/thecodest.co\/app\/uploads\/2024\/03\/thecodest-logo.svg","contentUrl":"https:\/\/thecodest.co\/app\/uploads\/2024\/03\/thecodest-logo.svg","width":144,"height":36,"caption":"The Codest"},"image":{"@id":"https:\/\/thecodest.co\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/pl.linkedin.com\/company\/codest","https:\/\/clutch.co\/profile\/codest"]}]}},"_links":{"self":[{"href":"https:\/\/thecodest.co\/is\/wp-json\/wp\/v2\/dictionary\/6619","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thecodest.co\/is\/wp-json\/wp\/v2\/dictionary"}],"about":[{"href":"https:\/\/thecodest.co\/is\/wp-json\/wp\/v2\/types\/dictionary"}],"version-history":[{"count":1,"href":"https:\/\/thecodest.co\/is\/wp-json\/wp\/v2\/dictionary\/6619\/revisions"}],"predecessor-version":[{"id":10998,"href":"https:\/\/thecodest.co\/is\/wp-json\/wp\/v2\/dictionary\/6619\/revisions\/10998"}],"wp:attachment":[{"href":"https:\/\/thecodest.co\/is\/wp-json\/wp\/v2\/media?parent=6619"}],"curies":[{"name":"vp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}