List of data structures

This is a list of well-known data structures. For a wider list of terms, see list of terms relating to algorithms and data structures. For a comparison of running times for a subset of this list see comparison of data structures.

Data types

Primitive types

Composite types or non-primitive type

  • Array, a sequence of elements of the same type stored contiguously in memory
  • Record (also called a structure or struct), a collection of fields
    • Product type (also called a tuple), a record in which the fields are not named
  • String, a sequence of characters representing text
  • Union, a datum which may be one of a set of types
  • Tagged union (also called a variant, discriminated union or sum type), a union with a tag specifying which type the data is

Abstract data types

Some properties of abstract data types:

Structure Ordered? Uniqueness?
List yes no
Associative array no keys (indexes) only
Set no yes
Stack yes no
Multimap no no
Multiset (bag) no no
Queue yes no

"Ordered" means that the elements of the data type have some kind of explicit order to them, where an element can be considered "before" or "after" another element. This order is usually determined by the order in which the elements are added to the structure, but the elements can be rearranged in some contexts, such as sorting a list. For a structure that isn't ordered, on the other hand, no assumptions can be made about the ordering of the elements (although a physical implementation of these data types will often apply some kind of arbitrary ordering). "Uniqueness" means that duplicate elements are not allowed. Depending on the implementation of the data type, attempting to add a duplicate element may either be ignored, overwrite the existing element, or raise an error. The detection for duplicates is based on some inbuilt (or alternatively, user-defined) rule for comparing elements.

Linear data structures

A data structure is said to be linear if its elements form a sequence.

Arrays

Lists

Trees

Trees are a subset of directed acyclic graphs.

Binary trees

B-trees

Heaps

Bit-slice trees

In these data structures each tree node compares a bit slice of key values.

Multi-way trees

Space-partitioning trees

These are data structures used for space partitioning or binary space partitioning.

Application-specific trees

Hash-based structures

Graphs

Many graph-based data structures are used in computer science and related fields:

Other

See also

Read other articles:

Questa voce o sezione sugli argomenti conflitti e Messico non cita le fonti necessarie o quelle presenti sono insufficienti. Commento: aprile 2016 Puoi migliorare questa voce aggiungendo citazioni da fonti attendibili secondo le linee guida sull'uso delle fonti. Segui i suggerimenti del progetto di riferimento. Questa voce sugli argomenti conflitti e organizzazioni criminali è solo un abbozzo. Contribuisci a migliorarla secondo le convenzioni di Wikipedia. Segui i suggerimenti del ...

 

 

МаномManom   Країна  Франція Регіон Гранд-Ест  Департамент Мозель  Округ Тьйонвіль Кантон Юц Код INSEE 57441 Поштові індекси 57100 Координати 49°22′11″ пн. ш. 6°11′20″ сх. д.H G O Висота 148 - 245 м.н.р.м. Площа 10,39 км² Населення 2947 (01-2020[1]) Густота 251,97 ос./км² Розміщення Вл

 

 

Lachlan Shire Local Government Area van Australië Locatie in Nieuw-Zuid-Wales Situering Staat Nieuw-Zuid-Wales Streek Central West Hoofdplaats Condobolin (58-64 Molong Street)[1] Coördinaten 33°3'ZB, 147°9'OL Algemene informatie Oppervlakte 7.431 km² Inwoners 7.180 Politiek Burgemeester Terence Brady Overig Website http://www.lachlan.nsw.gov.au Portaal    Australië Lachlan Shire Council is een Local Government Area (LGA) in de Australische deelstaat Nieuw-Zuid-Wales. B...

هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (مارس 2019) نوريثيستيرون إينانثات نوريثيستيرون إينانثات الاسم النظامي [(9S,10R,13S,14S,17R)-17-ethynyl-13-methyl-3-oxo-1,2,6,7,8,9,10,11,12,14,15,16-dodecahydrocyclopenta[a]phenanthren-17-yl] heptanoate اعتبارات علاجية اسم تجار...

 

 

?Рак-мізантроп червоний Рак-мізантроп червоний з околиць Ялти, використовує черепашку рапани як схованку Біологічна класифікація Домен: Еукаріоти (Eukaryota) Царство: Тварини (Animalia) Тип: Членистоногі (Arthropoda) Підтип: Ракоподібні (Crustacea) Клас: Вищі ракоподібні (Malacostraca) Ряд: Десятин

 

 

فيلادلفيا إيقلز تأسس عام 1933  الملعب ملعب لينكون فاينانشال فيلد  البلد الولايات المتحدة  الدوري الدوري الوطني لكرة القدم الأمريكية  المالك جيفري لوري  المدرب تشيب كيلي (2013–2015)أندي ريد  [لغات أخرى]‏ (1999–2012)راي رودس (1995–1998)بادي ريان (1986–1990)ماريون كامبل (1983

The Airmail MysteryFilm posterSutradaraRay TaylorProduserDitulis olehDistributorUniversal PicturesTanggal rilis 28 Maret 1932 (1932-03-28) Durasi12 bab (225 menit)Negara Amerika Serikat Bahasa Inggris The Airmail Mystery adalah film Amerika Serikat produksi tahun 1932 bergenre drama petualangan yang disutradarai oleh Ray Taylor. Film ini dirilis oleh Universal pada tanggal 28 Maret 1932. Plot Pilot pesawat pos udara Bob Lee (james Flavin) pemilik tambang emas, menghadapi perlawanan dari ...

 

 

سيث ماكفارلن معلومات شخصية اسم الولادة (بالإنجليزية: Seth Woodbury MacFarlane)‏  الميلاد 26 أكتوبر 1973 (العمر 50 سنة)كينت الإقامة لوس أنجلوس  مواطنة الولايات المتحدة  الطول 1.78 متر  عضو في نقابة الكتاب الأمريكية الغربية  إخوة وأخوات راتشيل ماكفارلين  الحياة العملية المدرسة

 

 

British professional organisation For other uses, see Institute of Directors (India) and Institute of Directors in New Zealand. Institute of DirectorsIoD headquarters at 116 Pall MallFounded1903; 120 years ago (1903)TypeProfessional organisationFocusBusiness leadersHeadquarters116 Pall MallLondon, SW1United KingdomMembers 20,000+Director GeneralJonathan Geldart[1]Websitewww.iod.com The Institute of Directors (IoD) is a British professional organisation for company di...

Luxair IATA ICAO Kode panggil LG LGL LUXAIR Didirikan1961PenghubungLuxembourg - Findel AirportKota fokusSaarbrücken Airport [ends 2012]Program penumpang setiaMiles & MoreArmada17 (+6 orders)Tujuan59 (39 seasonal)Perusahaan induk49.96% dimiliki oleh negara[1]Kantor pusatFindel Airport, Sandweiler, LuxembourgTokoh utamaAdrien Ney (CEO)Situs webwww.luxair.lu Luxair Embraer ERJ-145 Luxair adalah nama maskapai penerbangan Luksemburg dengan kode IATA LG dan kode ICAO LGL. Armada Armada...

 

 

Paolina Bonaparte, potret oleh Robert Lefèvre, 1803 Paolina Bonaparte (20 Oktober 1780 – 9 Juni 1825) merupakan adipatni pertama di Guastalla, Italia, putri kekaisaran Prancis dan putri Sulmona dan Rossano. Ia adalah anak keenam Letizia Bonaparte dan Carlo Buonaparte, perwakilan Korsika untuk istana Raja Louis XVI dari Prancis. Kakandanya, Napoleon, adalah kaisar pertama Prancis. Ia menikah dengan Charles Victoire Emmanuel Leclerc, seorang jenderal Prancis, hubungan pernikahan itu berakhir...

 

 

Australian linguist (born 1967) Ingrid PillerBorn1967 (age 55–56)Known forLinguistic diversity and social participationScientific careerFieldsApplied LinguisticsIntercultural communicationSociolinguisticsInstitutionsMacquarie University Websitewww.languageonthemove.org Ingrid Piller (born in Germany in 1967)[1][2] is an Australian linguist, who specializes in intercultural communication, language learning, multilingualism, and bilingual education.[3] Pi...

Species of beetle Omorgus tatei Scientific classification Domain: Eukaryota Kingdom: Animalia Phylum: Arthropoda Class: Insecta Order: Coleoptera Family: Trogidae Genus: Omorgus Species: O. tatei Binomial name Omorgus tateiBlackburn, 1892 Omorgus tatei is a species of hide beetle in the subfamily Omorginae.[1][2] References ^ Omorgus (Omorgus) subgenus. BioLib. ^ Omorgus Erichson, 1847. GBIF. Taxon identifiers Wikidata: Q21300085 Wikispecies: Omorgus tatei AFD: Omorgus_(O...

 

 

Set of mythological Greek characters For other uses, see Aegyptus (disambiguation). In Greek mythology, Aegyptus or Ægyptus (/ɪˈdʒɪptəs/; Ancient Greek: Αἴγυπτος) may refer to the following related characters: Aegyptus, son of Zeus and Thebe of Egypt[1] and thus, can be considered brother to the earlier Heracles.[2] He may be the same or different with the one below. Aegyptus, king of Egypt and son of King Belus and the naiad Achiroe.[3] Aegyptus, an Egy...

 

 

大阪教育大学附属平野中学校 北緯34度37分5.7秒 東経135度33分3.2秒 / 北緯34.618250度 東経135.550889度 / 34.618250; 135.550889座標: 北緯34度37分5.7秒 東経135度33分3.2秒 / 北緯34.618250度 東経135.550889度 / 34.618250; 135.550889過去の名称 大阪第一師範学校女子部附属中学校大阪学芸大学第一師範学校平野附属中学校大阪学芸大学附属平野中学校大阪教育大学...

True crime podcast This article relies excessively on references to primary sources. Please improve this article by adding secondary or tertiary sources. Find sources: Real Crime Profile – news · newspapers · books · scholar · JSTOR (April 2021) (Learn how and when to remove this template message)PodcastReal Crime Profile Real Crime Profile is a true crime podcast distributed by Wondery and co-hosted by Jim Clemente (former FBI profiler),[1] La...

 

 

Zoo in Central Melaka, Melaka, Malaysia Malacca Zoo2°16′40″N 102°18′6″E / 2.27778°N 102.30167°E / 2.27778; 102.30167Date opened196313 August 1987 (to public)LocationAyer Keroh, Malacca, MalaysiaLand area54 acres (22 ha)No. of animals554[1]No. of species215MembershipsISO 9001:2000, SEAZA[2]Websitewww.zoomelaka.gov.my Malacca Zoo, officially the Malacca Zoo and Night Safari, is a 54-acre (22 ha) zoological park located beside Lebuh A...

 

 

Museum in Guangzhou, China 23°8′15″N 113°15′40″E / 23.13750°N 113.26111°E / 23.13750; 113.26111 Museum of the Western Han Dynasty Mausoleum of the Nanyue King西漢南越王博物館Established1988LocationYuexiu District, Guangzhou, GuangdongTypeMausoleum Museum of the Mausoleum of the Nanyue KingTraditional Chinese西漢南越王博物館Simplified Chinese西汉南越王博物馆Literal meaningWestern Han Nanyue King MuseumTranscriptionsStandard Manda...

Artikel ini sebatang kara, artinya tidak ada artikel lain yang memiliki pranala balik ke halaman ini.Bantulah menambah pranala ke artikel ini dari artikel yang berhubungan atau coba peralatan pencari pranala.Tag ini diberikan pada Maret 2016. Ini adalah nama Tionghoa; marganya adalah Ho. Templat:Righteous Among the Nations Ho Feng-Shan Ho Feng-Shan (Hanzi tradisional: 何鳳山; Hanzi sederhana: 何凤山; Pinyin: Hé Fèngshān, juga disebut He Fengshan;[1] kelahiran 10 S...

 

 

Questa voce o sezione sull'argomento armi da fuoco è priva o carente di note e riferimenti bibliografici puntuali. Commento: oltre la metà della voce non ha note puntuali, scarsa affidabilità. Sebbene vi siano una bibliografia e/o dei collegamenti esterni, manca la contestualizzazione delle fonti con note a piè di pagina o altri riferimenti precisi che indichino puntualmente la provenienza delle informazioni. Puoi migliorare questa voce citando le fonti più precisamente. Segui i sug...

 

 

Strategi Solo vs Squad di Free Fire: Cara Menang Mudah!