Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The goal of this homework is to refresh your discrete math skills, and to accustomize you to seeing strings as mathematical objects. We are going

The goal of this homework is to refresh your discrete math skills, and to accustomize you to seeing strings as
mathematical objects. We are going to use these skills later on when analyzing languages and automata.
(4 points) Prove that string reversal (R) is an involution. That is,(wR)R=w for any given string.
(4 points) Prove that, for any given string w if
w is a palindrome (that is w=wR), and
|w| is even
then there is a string v such that vvR=w.
(4 points) Bonus question
A string is repeat-free if non-empty prefixes of the string does not occur in the rest of the string. That is,w is
repeat-free if for all x,y, if xy=w then x does not occur in y.
How many repeat-free strings of length n are there for each of the following alphabets? Show your work.
The binary alphabet {0,1}
The ternary alphabet {0,1,2}
image text in transcribed

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

Informix Database Administrators Survival Guide

Authors: Joe Lumbley

1st Edition

0131243144, 978-0131243149

More Books

Students also viewed these Databases questions

Question

Discuss the differences and similarities between ethnicity and race

Answered: 1 week ago