How to create my own efficient data structure?

Arrhenius

I'm making a program in which I need to save objects that are not repeated and must be sorted into a data structure. Access, modification and removal of the object have to be very efficient.

First I thought about making a Map < String,Object > where the key is the name (attribute) of the object. But my teacher told me it was inefficient because I was duplicating content and I should have to create my own structure without using lists, vectors, .. or at least not directly, that is, I have to override the implementation.

But I do not know where to start and what is a good choice. What advice would you give me to access the object through its name in an efficient way?

Thanks!

NSF

You didn't mention how efficient it needs to be so I assume a TreeSet is what you need

Operations you mentioned are done in log(n)

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How can I create my own data structure with an iterator that returns mutable references?

From Dev

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

From Dev

Tensorflow - TextSum model: How to create my own training data

From Dev

Tensorflow - TextSum model: How to create my own training data

From Dev

How to create my own handwriting data set like IAM dataset

From Dev

How to create my own screenlet

From Dev

How to create my own screenlet

From Dev

How to create my own promise?

From Dev

How to create an own Calendar-structure?

From Dev

How to create my own prefix for my plugins?

From Dev

how to choose or write my own java data structure allowing multi attributes search

From Dev

How to create my own library on CakePHP

From Dev

How to create my own custom map

From Dev

How to create my own jOOQ result?

From Dev

How to create my own custom Dropwizard bundle?

From Dev

How To Make My Own Way To Create An Object?

From Dev

How to create redirect links with my own url?

From Dev

How to create my own library on CakePHP

From Dev

How to create my own certificate chain?

From Dev

how to create my own UI in grails?

From Dev

How to create my own "sudo" program?

From Dev

How to create my own terminal commands

From Dev

How to create MY OWN custom icons 18.04

From Dev

How to create my own encryption in Python 2.7?

From Dev

How to create data structure in JavaScript?

From Dev

How do I use my own folder structure with Shotwell?

From Dev

how to use my own form structure in agile toolkit?

From Dev

How do I use my own folder structure with Shotwell?

From Dev

How to create structure in MATLAB with many repeated substructures in an efficient way?

Related Related

HotTag

Archive