Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. Decimal Strings A dec-string is a sequence of characters from the 10-character alphabet {0,1,2,3,4,5,6,7,8,9}. For example, these are dec-strings: 0 36562342320 49548362729 Let n0

2. Decimal Strings

A dec-string is a sequence of characters from the 10-character alphabet {0,1,2,3,4,5,6,7,8,9}. For example, these are dec-strings:

0 36562342320 49548362729 

Let n0 be an integer.

  1. What is the number of dec-strings d1,,dn of length n4 such that d1d200 or d3d411.
  2. A dec-string d1,,dn is bad if di=di+1 or di+di+1=9 for at least one i{1,,n1} and it is good otherwise. What is the number of good dec-strings of length n?
  3. A dec-string d1,,dn is 2-bad if, di=dj or di+dj=9 for some i2-good otherwise. What is the number of 2-good dec-strings?
  4. A dec-string d1,,dn is k-bad if di=dj or di+dj=9 for some ik-good otherwise. What is the number of k-good dec-strings of length n?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Support For Data Mining Applications Discovering Knowledge With Inductive Queries Lnai 2682

Authors: Rosa Meo ,Pier L. Lanzi ,Mika Klemettinen

2004th Edition

3540224793, 978-3540224792

More Books

Students also viewed these Databases questions