Questions tagged [treemaps]

24 questions
0
votes
2 answers

How can I get the required keys from total keys given in a map?

I require approx. 20 keys from a data provided that contains 100+ keys. Set> set = realPosDataMap.entrySet(); Iterator> i1 = set.iterator(); Map.Entry map; while(i1.hasNext())…
Mysa Vijay
  • 11
  • 2
0
votes
3 answers

Java: Maximum value in TreeMap

If I have a TreeMap: TreeMap map = new TreeMap(); I want to print out the String with the highest value. I have seen other questions about sorting, but I am wondering If there is any smooth way to get the maximum…
Habbo
  • 155
  • 1
  • 8
0
votes
1 answer

Reading Objects From A File to An Input Stream

I am presently working on a simple ObjectInputStream and ObjectOutputStream, I have read both the documentation and the Java tutorial and am familiar with the basics; however, in attempting to compile my program, I am encountering an error that may…
Thomas
  • 6,291
  • 6
  • 40
  • 69
0
votes
2 answers

Inverted indexing

I'm working on inverted indexing and my question is: in the final step we should return the total number of documents the word appeared in or just each document number ? for example : if the word "Hello" appeared in 3 documents(document A and…
0
votes
1 answer

Adding two sparsematrix treemaps

I'm trying to add two different sparse martices together to achieve one large matrix with all the values from the other matrix. But if they both have a value at a specific key, the values should be added together. What I can't figure out is how to…
user2958542
  • 331
  • 1
  • 8
  • 18
0
votes
1 answer

Combining treeMaps to output similar values

I am trying to compare two treemaps and compare the keywords, then for the ones that both maps have in common I want to add the values together and then output this into a text area So far I have two treeMaps that are succesfully working, but I…
Quallssm
  • 13
  • 1
  • 6
-1
votes
1 answer

PowerBI - Treemap to show elements alphabetically

I have a Treemap visualization which seems to show the table rows in reversed alphabetical order: (Top Level. Notice "A" is at the bottom right while "W" is on the top left) Just to prove it is not a coincidence when it is drilled down one…
taylorswiftfan
  • 1,371
  • 21
  • 35
-1
votes
3 answers

Java Inverted Index program

I am writing an inverted index program on java which returns the frequency of terms among multiple documents. I have been able to return the number times a word appears in the entire collection, but I have not been able to return which documents…
user3600008
  • 31
  • 1
  • 1
  • 4
-4
votes
1 answer

Usage guide of treemap from the code

public class MMTUtil { private static Map domainDocumentationMap = null; static { domainDocumentationMap = new TreeMap(); } public static Map getDomainDocumentationMap() { …
1
2