• recategorized by
709 views
1 1 vote
Let h be the homomorphism defined by h(a) = 01, h(b) = 10, h(c) = 0, and h(d) = 1. If we take any string w in (0+1)*, h-1(w) contains some number of strings, N(w). For example, h-1(1100) = {ddcc, dbc}, i.e., N(1100) = 2. We can calculate the number of strings in h-1(w) by a recursion on the length of w. For example, if w = 00x for some string x, then N(w) = N(0x), since the first 0 in w can only be produced from c, not from a.

Complete the reasoning necessary to compute N(w) for any string w in (0+1)*. Then, choose the correct value of N(10100101).

 
  a)  15
  b)  34
  c)  128
  d)  25

Please log in or register to answer this question.

Position:
Show:

Related questions

2 2 votes
1 1 answer
699
699 views
LavTheRawkstar asked Feb 1, 2017
699 views
$T(n)= 7 T (\frac{n}{3}) + n^2 $
0 0 votes
1 1 answer
860
860 views
rexritz asked Aug 13, 2023
860 views
$T\left ( n \right )= 8T\left ( \frac{n}{2} \right )+\left ( n\cdot logn \right )^{2.99}$Also can $\mathcal{O}(n^{3})$ be an upper bound to above recurrence relation?
0 0 votes
1 1 answer
1.3k
1.3k views
darkswow asked Oct 18, 2022
1,264 views
1 1 vote
1 1 answer
3.3k
3.3k views
iarnav asked Jul 29, 2017
3,348 views
Given RR as -T(n) = 2T(n/2)+n ; n>1T(1) = 1Solve this using only BACK SUBSTITUTION method? Note - I am stuck at T(n)= 2^k.T(n/2^k)+(2^k-1).nand I'm putting 2^k=n Please h...