2. A binary string is a finite sequence v = a1a2 . . . an, where each ai is either 0 or 1. In this case n is the length of the string v. The strings a1, a1a2, . . . , a1 . . . an−1, a1 . . . an are all prefixes of v. On the set X of all binary strings consider the relations R1 and R2 defined as follows: R1 = {(w, v) | w and v have the same length }. R2 = {(w, v) | w is a prefix of v }.
(a) Prove that R1 is an equivalence relation.
(b) Write down the equivalence classes of the strings 0, 01, and 111.
(c) Consider the set Y of all binary strings of length 2 or 3. The relation R2 on the set Y is a partial ordering. Draw a Hasse diagram of the partial order R2 on the set Y . Identify maximal and minimal elements of the poset.
(a)
Reflexive: let . then is related to itself as length() = length(). Hence is reflexive.
Symmetric: let and , and .
length() = length()
length() = length()
.
Hence is symmetric.
Transitive: let and and , and , .
length() = length() and length() = length().
length() = length()
.
Hence is transitive.
Hence R1 is an equivalence relation.
(b)
Equivalence class of is set of all elements in related to .
Equivalence class for 0 is {0, 1}.
Equivalence class for 01 is {00, 01, 10, 11}
Equivalence class for 111 is {000, 001, 010, 011, 100, 101, 110, 111}.
(c)
The set = {00, 01, 10, 11, 000, 001, 010, 011, 100, 101, 110, 111}.
= {(w, v) | w is a prefix of v }.
Hasse Diagram:
2. A binary string is a finite sequence v = a1a2 . . . an, where each ai is either 0 or 1. In this case n is the length...
2. A binary string is a finite sequence u-діаг . . . an, where each ai is either 0 or 1. In this case n is the length of the string v. The strings ai, aia2,... ,ai... an-1,ai... an are all prefixes of v. On the set X of all binary strings consider the relations Ri and R2 defined as follows: Ri-(w, v) w and v have the same length ) R2 = {(u, v) I w is a prefix...
2. A binary string s a finite sequence u = ala2 . . . an, where each ai įs either 0 or 1. In this case n is the length of the string v. The strings ai,aia2,...,ai...an-1,aan are all prefixes of v. On the set X of all binary strings consider the relations Ri and R2 defined as follows R, = {(u, u) | w and u have the same length } {(w, u) | w is a prefix of...
[Partial Orders - Six Easy Pieces] A binary relation is R is said to be antisymmetric if (x,y) ER & (y,x) ER = x=y. For example, the relations on the set of numbers is antisymmetric. Next, R is a partial order if it is reflexive, antisymmetric and transitive. Here are several problems about partial orders. (a) Let Ss{a,b} be a set of strings. Let w denote the length of the string w, i.e. the number of occurrences of letters (a...
segments over the length L of the string, where the length of each vibrating segment equals one-half wavelength. Use this fact to show that the fr of the allowed standing waves on this string are given by fn-nfi, where n 1,2,3, 4,5,... and fi is the fundamental frequency. In other words, derive an expression relating the nth harmonic to the fundamental frequency. Yo may use the fact that the wave velocity is the same for all modes. 1. For a...
specifically on finite i pmu r the number of objøcts or ways. Leave your answers in fornsiala form, such as C(3, 2) nporkan?(2) Are repeats poasib Two points each imal digits will have at least one xpeated digin? I. This is the oounting problem Al ancmher so ask yourelr (1) ls onder ipo n How many strings of four bexadeci ) A Compuir Science indtructor has a stack of blue can this i For parts c, d. and e, suppose...