1

I have a graph as given below: enter image description here

Let us assume one node as transmitter and another as receiver.

  1. We need to transfer particles in every time slot constrained by maximum particles N and minimum 0. The combination of which particle in which time slot makes a code. I mean if 2 1 0 0 is a code that means that 2 particles in slot zero 1 in slot 1 and 0 particles in slot 2 and 3
  2. Now let us suppose that any particle in a time slot can take any path and suffer through at most K delays. Delays are given by number of dots. More dots more delay. The delay to particles can be assigned randomly. The maximum delay for this graph is 4 it can be generalized to K. How to design codes so that information is reliably transferred across transmitter and receiver.

I just want to know how these codes are constructed, assuming that other codes must exists to be revealed. Also please tell me the prerequisites I need for such problem as I am not a computer engineer. One way is given in here

Userhanu
  • 137
  • 4

1 Answers1

0

Off the top of my head...

Given a Packet, encode both the slot and count into the number with known limits.... a code can be computed ... and both the Sender and Receiver know what the limits are.

For example: 5 slots, and 7 possible counts (max count from 0..6 is 7 )

A CODE to determine what slot and count in that slot when it arrives

Code = Count_in_slot + (slot_number * (Max_Counts ) )

   Table of example CODES that could be sent or received

Slot            n counts 
       0   1   2   3   4   5   6 
      --- --- --- --- --- --- --- 
 0     0   1   2   3   4   5   6
 1     7   8   9  10  11  12  13 
 2    14  15  16  17  18  19  20
 3    21  22  23  24  25  25  27
 4    28  29  30  31  32  33  34

Decode a Slot and count from the number :

 Sequence Initialize all ZERO's

 for each Code received
   temp  = Code
   Count = temp mod max_count  (NOTE: Remainder of a division (Modular math )
   temp  = temp \ max_count    (NOTE: integer divide)
   Slot  = temp mod Number_of_slots
   Sequence(Slot) = Count

And when either all slots are received, or max time wait occurs the reconstructed sequence is completed.

ALSO NOTE: If time delay is used to close the sequence, then slots with ZERO do not need to be sent.