Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4535212
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T14:22:37+00:00 2026-05-21T14:22:37+00:00

I know what the difference is in terms of where a map or where

  • 0

I know what the difference is in terms of where a map or where a dictionary is used, but what I wondered is why a Dictionary<TKey, TValue> in .NET supposedly uses, from what I’ve read here, a linked list under the covers and I know that a std::map<K,T> (C++) is implemented as a red-black tree.

Why aren’t they the same under the covers, is there some difference in performance, (which I know that a C++ data structure is optimized for) or why would the .NET dictionary actually be a linked list under the covers and the C++ std::map then a red-black tree, which to my knowledge are completely different data structures, used for entirely different purposes mostly.

Perhaps these two things serve a different purpose and maybe I just don’t know.

Can anybody clarify?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T14:22:38+00:00Added an answer on May 21, 2026 at 2:22 pm

    Dictionary<> is a hash table, akin to std::unordered_map<>.

    SortedDictionary<> is a red-black tree, akin to std::map<>.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know the difference between ASP.NET webforms and ASP.NET MVC and I've seen quite
I know the difference between the points-to (->) and dot (.) operator but I
I would like to know difference between static variables and global variables in terms
I would like to know the difference between the 2 methods in terms of
I would like to know if there is a difference in terms of performance
I want to know difference between recursive function and using a stack in terms
I know WTL builds on ATL, but what does that mean in practical terms?
i just wanted to know the difference between OracleCallableStatement and CallableStatement in terms of
I know the difference between manage and unmanaged DirectX. My question is if I
I want to know the difference between : $this->forward(module, action); And $this->redirect(module/action); My first

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.