Suggest Data Structure which implement this

user3832270

Can any one suggest any data structure/code such that if we map 1 to a, 2 to b, 3 to c i.e.

1 --> a
2 --> b
3 --> c

then we can also reverse lookup such as if i query 'a' then it should output 1 and similarly 2 and 3 for 'b' and 'c' respectively.

Also if i change the mapping afterwards from above mapping to :

1 --> a
2 --> a
3 --> c

then after reverse lookup i should get (1,2) for 'a' and (3) for 'c'.

seand

The number to letter direction: a hash. For the letter to number direction: multimap (or a hash where each value is a list)

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Which data structure is most suitable to implement a Dictionary?

From Dev

Which data structure will be suitable for storing three related values? And how to implement?

From Dev

How implement data structure which is map many to one?

From Dev

Which data structure in C++ suits to implement webbrowser history?

From Dev

which data structure to use to implement phone book which can be searched either on Name or phone number?

From Dev

When to use which Data Structure?

From Dev

Not sure which data structure to use

From Dev

Which type of data structure is a stack?

From Dev

How to implement auto suggest in solr?

From Dev

How to serialize a data structure which is instance of Data?

From Dev

Hibernate how to implement dynamic data structure

From Dev

What fundamental data structure is used to implement NSOrderedSet

From Dev

How to implement a Set Data Structure in Java?

From Dev

What is the best data structure to implement a queue?

From Dev

Best data structure to implement the APIs for Game Scoreboard

From Dev

How to implement the data structure for "transferring ownership" of a model

From Dev

Which data structure is best for an ordered list of strings?

From Dev

Which algorithm to use to populate the data in tree structure

From Dev

Data structure which needs to be filled in VBA

From Dev

Map Reduce : Which is the underlying Data Structure used

From Dev

Binary search works best with which data structure?

From Dev

Data Structure which allows efficent searching of objects

From Dev

Which data structure should I use in Java?

From Dev

Which data structure should I use to handle multi value data?

From Dev

Which C# data structure is best/feasible to store hierarchical data

From Dev

Is it possible to implement stack with only pointer to structure (no data type)?

From Dev

How to implement my own LinkedList<LinkedList> data structure in Java?

From Dev

how to implement below data structure in java using collection framework

From Dev

Flexible way to implement analytical data warehouse with changing attribute structure?

Related Related

  1. 1

    Which data structure is most suitable to implement a Dictionary?

  2. 2

    Which data structure will be suitable for storing three related values? And how to implement?

  3. 3

    How implement data structure which is map many to one?

  4. 4

    Which data structure in C++ suits to implement webbrowser history?

  5. 5

    which data structure to use to implement phone book which can be searched either on Name or phone number?

  6. 6

    When to use which Data Structure?

  7. 7

    Not sure which data structure to use

  8. 8

    Which type of data structure is a stack?

  9. 9

    How to implement auto suggest in solr?

  10. 10

    How to serialize a data structure which is instance of Data?

  11. 11

    Hibernate how to implement dynamic data structure

  12. 12

    What fundamental data structure is used to implement NSOrderedSet

  13. 13

    How to implement a Set Data Structure in Java?

  14. 14

    What is the best data structure to implement a queue?

  15. 15

    Best data structure to implement the APIs for Game Scoreboard

  16. 16

    How to implement the data structure for "transferring ownership" of a model

  17. 17

    Which data structure is best for an ordered list of strings?

  18. 18

    Which algorithm to use to populate the data in tree structure

  19. 19

    Data structure which needs to be filled in VBA

  20. 20

    Map Reduce : Which is the underlying Data Structure used

  21. 21

    Binary search works best with which data structure?

  22. 22

    Data Structure which allows efficent searching of objects

  23. 23

    Which data structure should I use in Java?

  24. 24

    Which data structure should I use to handle multi value data?

  25. 25

    Which C# data structure is best/feasible to store hierarchical data

  26. 26

    Is it possible to implement stack with only pointer to structure (no data type)?

  27. 27

    How to implement my own LinkedList<LinkedList> data structure in Java?

  28. 28

    how to implement below data structure in java using collection framework

  29. 29

    Flexible way to implement analytical data warehouse with changing attribute structure?

HotTag

Archive