Purchase Solution

Evaluate Bit Strings

Not what you're looking for?

Ask Custom Question

Please help answer the following questions.

How many bit strings of length 6?
How many bit strings of length 6 is there that begin with 0 or end with a 1?
How many bit strings of length 8 are there which contain exactly 3 ones?
How many bit strings of length 8 are palindromes?

Purchase this Solution

Solution Summary

In this solution, Bit Strings of length N are evaluated for different types. Ex Begin with 0 , End with 1.

Solution Preview

Let me try to explain what the problem is trying to ask you and give some definitions and concepts behind it.

First of all what is a bit string?
Bit string is an array which stores bits. As simple as that!
Ex: number 7 can be represented by 3 bit string 111 or a 4 bit string 0111.
Note: Bits are 0 and 1. And we are assuming binary system here.

If I give you 2 bit string, how many combinations of 0s and 1s you can come up with?
Well , let's see
Pattern for 2 bit string
00
01
10
11

So answer is I can come up with 4 different combinations
If I give you 3 bit string, if you do the same exercise as above, you ...

Purchase this Solution


Free BrainMass Quizzes
Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

C# variables and classes

This quiz contains questions about C# classes and variables.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.