Find the bit string for the following sets.

  • Thread starter Thread starter Hodgey8806
  • Start date Start date
  • Tags Tags
    Bit Sets String
Hodgey8806
Messages
140
Reaction score
3

Homework Statement


The a universal set: u = {1,2,3,4,5,6,7,8,9,10}

1) Find the bit string for b = {4,3,3,5,2,3,3,}

2) Find the bit string for the union of two sets.


Homework Equations



1)Would I first begin this problem by realizing that set b is the same as {2,3,4,5}?

The Attempt at a Solution



1)If so, then the bit string would 0111100000.

2)Would I say that the union of two sets would give a truth table such as 1110. Is this correct?

Is this correct? thanks!
 
Physics news on Phys.org
Hodgey8806 said:

Homework Statement


The a universal set: u = {1,2,3,4,5,6,7,8,9,10}

1) Find the bit string for b = {4,3,3,5,2,3,3,}

2) Find the bit string for the union of two sets.


Homework Equations



1)Would I first begin this problem by realizing that set b is the same as {2,3,4,5}?
It would be helpful for you to tell us what b actually is. There is not usually any indication in a set of whether any of the elements are duplicates, so it's not clear to me what {4, 3, 3, 5, 2, 3, 3} is supposed to represent.

Otherwise, if what you are supposed to do is show a string of bits that indicates the elements in b, then {0, 1, 1, 1, 1, 0, 0, 0, 0, 0} seems reasonable to me.


Hodgey8806 said:

The Attempt at a Solution



1)If so, then the bit string would 0111100000.

2)Would I say that the union of two sets would give a truth table such as 1110. Is this correct?

Is this correct? thanks!

The union of two sets is all those elements that are in the first set, or in the second set, or in their intersection.
 
The problem gives b to be a subset of the universal set. And b is the set of those elements "b = {4,3,3,5,2,3,3}". The question just asked me to find a bit string using the universal set given above. So I'm assuming that the duplicates can be done away with so that b is really just the set b = (2,3,4,5}. (Forgive me for not using an upper case b. I didn't think about it originally so I will use lower case for continuity.)

Also, the problem in the paper did not specify any sets for question number 2. It doesn't give any universal set or any other two sets. It was just a general question I'm assuming that the teacher meant that represents ALL sets. If that is not actually possible, then I can understand that I must be given a minimum of two sets to find the bit string for the union or intersection.

However, the questions are both worded exactly as on my paper and number 2 doesn't discuss any example sets. It just has that sentence and nothing else.

Thank you very much for help! :)
 
b* not be in the 4th word
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top