Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. STL:: MAP<char> Data Structure Used</char>

STL:: MAP<char> Data Structure Used</char>

Scheduled Pinned Locked Moved C / C++ / MFC
c++
5 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Anil Kumar Arvapalli
    wrote on last edited by
    #1

    Hi Friends Iam Very new to STL i want to know what Data Structures are used in MAP internally to search or to insert or to delete. can any body let me know this is assignment assigned by my teacher...... Thanks in Advance....

    T T S S 4 Replies Last reply
    0
    • A Anil Kumar Arvapalli

      Hi Friends Iam Very new to STL i want to know what Data Structures are used in MAP internally to search or to insert or to delete. can any body let me know this is assignment assigned by my teacher...... Thanks in Advance....

      T Offline
      T Offline
      theCPkid
      wrote on last edited by
      #2

      You can download the stl source code from [^] Since, this is your assignment, you should solve it. HINT : check map.h and other files included in it.

      1 Reply Last reply
      0
      • A Anil Kumar Arvapalli

        Hi Friends Iam Very new to STL i want to know what Data Structures are used in MAP internally to search or to insert or to delete. can any body let me know this is assignment assigned by my teacher...... Thanks in Advance....

        T Offline
        T Offline
        TimothyPMoore
        wrote on last edited by
        #3

        It can vary from implementation to implementation but I believe that most use a balanced binary tree.

        1 Reply Last reply
        0
        • A Anil Kumar Arvapalli

          Hi Friends Iam Very new to STL i want to know what Data Structures are used in MAP internally to search or to insert or to delete. can any body let me know this is assignment assigned by my teacher...... Thanks in Advance....

          S Offline
          S Offline
          Stuart Dootson
          wrote on last edited by
          #4

          It all depends on the implementation. And anyway, if this is YOUR assignment, assigned by YOUR teacher, then YOU should be doing the work of finding out the answer, not asking someone else to do it - look at the source code.

          Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

          1 Reply Last reply
          0
          • A Anil Kumar Arvapalli

            Hi Friends Iam Very new to STL i want to know what Data Structures are used in MAP internally to search or to insert or to delete. can any body let me know this is assignment assigned by my teacher...... Thanks in Advance....

            S Offline
            S Offline
            Stephen Hewitt
            wrote on last edited by
            #5

            The STL standard doesn't specify how a std::map is coded but rather its interface, which includes the complexity[^] of various operations. However, the complexity constraints and interface limit the choices. Generally a Red-black tree[^] is used.

            Steve

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups