727 views
4 votes
4 votes

In a Network where bytes are continuously being transferred, it is required to identify the most frequently transferred byte. What would be an appropriate data structure for finding this?

  1. Linked List
  2. Array
  3. Dynamically growing Array
  4. Set

1 Answer

Best answer
10 votes
10 votes
Byte means 8 bits. So, using an array of size 256 we can count the frequency of all possible (256) bytes and finally output the one with the maximum count.
selected by
Answer:

Related questions

2 votes
2 votes
2 answers
2
Arjun asked Oct 10, 2016
698 views
What would be an appropraite data structure to represent family hierarchy where each node is an individual and there in no requirement to keep "married to" relationship?B...
0 votes
0 votes
3 answers
3
Arjun asked Oct 10, 2016
614 views
Consider a complete graph of 10 vertices. The minimum no. of edge removals required to make the graph disconnected is ______