1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Ipatiy [6.2K]
3 years ago
6

Let A be the set represented by the bitstring 01011011100, let B be the set represented by the bitstring 10110111010. Find the b

itstrings representing A c , A ∪B, A ∩B, and A −B.
Computers and Technology
1 answer:
Sedbober [7]3 years ago
5 0

Answer:

Ac = 10100100011

A U B =  11111111110

A ∩ B =  00010011000

A - B = 00010010110

Explanation:

Given:

A = 01011011100

B = 10110111010

1)  Inverting the bits of A to calculate the complement, Ac = 10100100011

2) Bitwise union reference:

0 U 0 = 0

0 U 1 = 1

1 U 0 = 1

1 U 1 = 1

=> A U B = 01011011100 U 10110111010 = 11111111110

3) Bitwise interselection reference:

0 ∩ 0 = 0

0 ∩ 1 = 0

1 ∩ 0 = 0

1 ∩ 1 = 1

A ∩ B =  00010011000

4) Converting A and B to decimal and subtracting:

A - B = 732-582= 150

Converting 150 to binary, A - B = 00010010110

You might be interested in
How do you think Beyoncé choreography has/will influence the future of dance?
kaheart [24]

Answer: So choreographers do have the same rights as songwriters over the dissemination of their  skill, prestige, acclaim, power, visibility, popularity, influence, and potential  Will she find beauty in her 2019 forays in to Broadway

Explanation:

7 0
3 years ago
Read 2 more answers
You are consulting for a trucking company that does a large amount ofbusiness shipping packages between New York and Boston. The
likoan [24]

Answer:

Answer explained with detail below

Explanation:

Consider the solution given by the greedy algorithm as a sequence of packages, here represented by indexes: 1, 2, 3, ... n. Each package i has a weight, w_i, and an assigned truck t_i. { t_i } is a non-decreasing sequence (as the k'th truck is sent out before anything is placed on the k+1'th truck). If t_n = m, that means our solution takes m trucks to send out the n packages.

If the greedy solution is non-optimal, then there exists another solution { t'_i }, with the same constraints, s.t. t'_n = m' < t_n = m.

Consider the optimal solution that matches the greedy solution as long as possible, so \for all i < k, t_i = t'_i, and t_k != t'_k.

t_k != t'_k => Either

1) t_k = 1 + t'_k

    i.e. the greedy solution switched trucks before the optimal solution.

    But the greedy solution only switches trucks when the current truck is full. Since t_i = t'_i i < k, the contents of the current truck after adding the k - 1'th package are identical for the greedy and the optimal solutions.

    So, if the greedy solution switched trucks, that means that the truck couldn't fit the k'th package, so the optimal solution must switch trucks as well.

    So this situation cannot arise.

  2) t'_k = 1 + t_k

     i.e. the optimal solution switches trucks before the greedy solution.

     Construct the sequence { t"_i } s.t.

       t"_i = t_i, i <= k

       t"_k = t'_i, i > k

     This is the same as the optimal solution, except package k has been moved from truck t'_k to truck (t'_k - 1). Truck t'_k cannot be overpacked, since it has one less packages than it did in the optimal solution, and truck (t'_k - 1)

     cannot be overpacked, since it has no more packages than it did in the greedy solution.

     So { t"_i } must be a valid solution. If k = n, then we may have decreased the number of trucks required, which is a contradiction of the optimality of { t'_i }. Otherwise, we did not increase the number of trucks, so we created an optimal solution that matches { t_i } longer than { t'_i } does, which is a contradiction of the definition of { t'_i }.

   So the greedy solution must be optimal.

6 0
4 years ago
The internet shopping cart is an example of which version of the web?
kondor19780726 [428]
I MIGHT GET WARNED FOR THIS SO DON'T REPORT ME
4 0
3 years ago
The most common types of utility programs fall into these categories.
avanturin [10]

Answer:

file management

Explanation:

correct me if I wrong

7 0
3 years ago
How wireless communication might affect the development and implementations of internet of things?​
Alina [70]
If people send a link don’t try them report them!
5 0
3 years ago
Read 2 more answers
Other questions:
  • Match the following technologies with their applications.
    9·1 answer
  • Select the correct statement below. Group of answer choices
    6·2 answers
  • Assume s is a string of lower case characters.
    15·1 answer
  • What is the outside of an iPhone called?
    9·2 answers
  • Write a program using nested loop to produce the following output:
    6·1 answer
  • I don't understand how to write code for this in Java using nested for loops only. The official question is: write a program tha
    8·1 answer
  • Which task is performed by the artificial intelligence programmer?
    7·1 answer
  • Clicking this would navigate among different worksheets
    14·1 answer
  • Es costoso construir un robot
    6·1 answer
  • Technical safeguards involve the hardware and software components of an information system. group of answer choices true false
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!