Skip to main content
Sagnik's user avatar
Sagnik's user avatar
Sagnik's user avatar
Sagnik
  • Member for 9 years, 5 months
  • Last seen this week
Loading…
awarded
awarded
awarded
Loading…
awarded
comment
comment
Relation between semi decidable, undecidable and countable sets
Also decidable problems aren't a subset of undecidable problems. The sets are complements of each other.
comment
Relation between semi decidable, undecidable and countable sets
I think your diagram is wrong, since it assumes that undecidable problems are always semi-decidable. Some semi-decidable problems are undecidable (like the Halting Problem) and all decidable problems are semi-decidable.
revised
Algorithm to find if there are N 1's in a matrix where no two 1's are in same row or column
fixed grammar and spellings, edited tag, improved formatting
Loading…
comment
How to decide which bytes will form a packet ?(computer networks)
That depends on the network capacity, protocols involved etc. I suggest you look into some Computer Network books like Fourozan or Kurose-Ross. Please accept the answer if it has answered your original question.
comment
Merge sort and quicksort recursion tree depth
Start with completely unsorted strings of length 4 and work upto 10. Observe if there are any patterns between the number of recursion tree levels and the number of characters in the string. Extend this pattern for strings of 11 characters. You will get a general formula.
comment
How to decide which bytes will form a packet ?(computer networks)
A frame contains a packet. So once we isolate a frame, the frame contains the header and the data part. Simply stripping the header of the frame gives us the payload/data of the frame. This payload is nothing but the packet / datagram / network layer unit.
comment
How to decide which bytes will form a packet ?(computer networks)
Note that everything I described is just an example. The stop and start sequences were chosen as same and chosen randomly. It depends on the underlying protocol used the Network stack. These are called frame delimiters. Look it up.
comment
Quick access to top element of subsets of elements
Try looking up Segment Trees and Fenwick Trees. These definitely have to be altered to fit your particular model. Range Minimum Query Data Structures were exclusively developed to help model such questions.
Loading…
revised
Chomsky Classification of Languages
Made a mistake in declaring Type-1
Loading…
awarded
comment
What is this data structure/concept where a plot of points defines a partition to a space
+1. I refrained from mentioning them and went for implementations because I remember my professors mentioning them with a footnote that Voronoi Diagrams are computationally quite complex to implement in higher dimensions. So simple kNN implementations get the job done much better. However the condition that "lines are drawn to be equidistant between two points" may not be fulfilled.
1
2 3 4 5
10