# Visual representencion of coding tecniques

Juan shared this question 2 years ago

Hi GeoGebra community... Does anyone know how to do visual representation of bits on the app???

To make myself clear what i need to do is Manchester coding, here is an example:

Here is the math theory behind it:

And i found some code in MathLab to do it, but as I said, was looking foward to do it on GeoGebra:

If anyone knows how to do it on GeoGebra with scripts or anything else... Let me know.

The thing is get a String of 1's and 0's and make the visual representacion...

Thaks

1

is this enough?

changing n

Files: foro.ggb
1

Thanks for replying, now i got an idea on how to do it ty... Now to the other codes....

1

Hmm, another idea:

The Manchester Code (Thomas) has only four basic elements S00, S01, S10, S11 (see attached pictures), e.g. S01 gives the sequence 1-0 etc.

If you have a bit sequence like 1-0-1-0-1-1-1-0-0-1 you "only" have to "link" the suitable basic elements, here:

S10-S01-S10-S01-S11-S11-S10-S00-S01

I think an advantage of this idea is the fact, that you probably have a given bit sequence and get the Manchester Code "automatically", no matter how long your sequence is.

Problem:

I'm not sure how to link the basic elements (they are obvious polygons), but perhaps an expert like mathmagic has an idea how to implement it in GeoGebra. :-)

Kind regards

mire2

1

Yes, the basic idea is that... Now on to the other types of coding tecniques...

1

Ok, I think I found a working solution.

Short explanation:

BinCodeBasis = Your Bin-Sequenz splitted into the four basic elements

ManchesterBasis = assign every element of BinCodeBasis the suitable basic element S00, S01, S10, S11

ManchesterSequenz = linked the elements of ManchesterBasis

With this method, you can get easily every given BinCode and you can it adapt to other wanted representations.

I have "manually" add the beginning and the end of the ManchesterSequenz.

Kind regards

mire2

1

Another principle:

simulation of an oscilloscope

databit as random

1

one more:

a static version with polyline

1

Ok, here the version with both Manchester codings.

I like threads, where different people present (different) ideas. so I can learn from other ones.

@rami:

Fancy, but what's up with Manchester_04? - Don't ask what happened to mire1! :stuck_out_tongue_winking_eye:

1

@mire2

I want work with polyline-pattern, was not a good idea (I think)

Instead, here is version05 + 1, is like 05 but with a little animation.