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 algorithm to use to populate the data in tree structure

From Dev

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

From Dev

Hibernate how to implement dynamic data structure

From Dev

Data structure which needs to be filled in VBA

From Dev

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

From Dev

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

From Dev

Map Reduce : Which is the underlying Data Structure used

From Dev

How implement data structure which is map many to one?

From Dev

When to use which Data Structure?

From Dev

How to implement a Set Data Structure in Java?

From Dev

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

From Dev

how to implement below data structure in java using collection framework

From Dev

What is the best data structure to implement a queue?

From Dev

How to implement auto suggest in solr?

From Dev

Not sure which data structure to use

From Dev

Which data structure is most suitable to implement a Dictionary?

From Dev

Which type of data structure is a stack?

From Dev

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

From Dev

What fundamental data structure is used to implement NSOrderedSet

From Dev

Best data structure to implement the APIs for Game Scoreboard

From Dev

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

From Dev

Binary search works best with which data structure?

From Dev

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

From Dev

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

From Dev

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

From Dev

Data Structure which allows efficent searching of objects

From Dev

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

From Dev

Which data structure should I use in Java?

From Dev

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

Related Related

  1. 1

    Which algorithm to use to populate the data in tree structure

  2. 2

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

  3. 3

    Hibernate how to implement dynamic data structure

  4. 4

    Data structure which needs to be filled in VBA

  5. 5

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

  6. 6

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

  7. 7

    Map Reduce : Which is the underlying Data Structure used

  8. 8

    How implement data structure which is map many to one?

  9. 9

    When to use which Data Structure?

  10. 10

    How to implement a Set Data Structure in Java?

  11. 11

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

  12. 12

    how to implement below data structure in java using collection framework

  13. 13

    What is the best data structure to implement a queue?

  14. 14

    How to implement auto suggest in solr?

  15. 15

    Not sure which data structure to use

  16. 16

    Which data structure is most suitable to implement a Dictionary?

  17. 17

    Which type of data structure is a stack?

  18. 18

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

  19. 19

    What fundamental data structure is used to implement NSOrderedSet

  20. 20

    Best data structure to implement the APIs for Game Scoreboard

  21. 21

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

  22. 22

    Binary search works best with which data structure?

  23. 23

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

  24. 24

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

  25. 25

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

  26. 26

    Data Structure which allows efficent searching of objects

  27. 27

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

  28. 28

    Which data structure should I use in Java?

  29. 29

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

HotTag

Archive