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
dimulka [17.4K]
3 years ago
12

3. Suppose you work for this company that evaluates Boolean circuits in exponential time. Since you are very smart, your manager

wants you to write some code that will solve these problems in polynomial time. You have no idea of how to solve this in polynomial time. You search on the internet but do not find anything. However, your roommate tells you that he just finished writing a program called, FormulaII, that solves a boolean formula in polynomial time and would let you use it. Now you are in a position to write a program to solve boolean circuits in polynomial time. Write high level pseudo-code.
Engineering
1 answer:
hammer [34]3 years ago
3 0

Answer:

Ergr5

Explanation:

You might be interested in
Fix the code so the program will run correctly for MAXCHEESE values of 0 to 20 (inclusive). Note that the value of MAXCHEESE is
GarryVolchara [31]

Answer:

Code fixed below using Java

Explanation:

<u>Error.java </u>

import java.util.Random;

public class Error {

   public static void main(String[] args) {

       final int MAXCHEESE = 10;

       String[] names = new String[MAXCHEESE];

       double[] prices = new double[MAXCHEESE];

       double[] amounts = new double[MAXCHEESE];

       // Three Special Cheeses

       names[0] = "Humboldt Fog";

       prices[0] = 25.00;

       names[1] = "Red Hawk";

       prices[1] = 40.50;

       names[2] = "Teleme";

       prices[2] = 17.25;

       System.out.println("We sell " + MAXCHEESE + " kind of Cheese:");

       System.out.println(names[0] + ": $" + prices[0] + " per pound");

       System.out.println(names[1] + ": $" + prices[1] + " per pound");

       System.out.println(names[2] + ": $" + prices[2] + " per pound");

       Random ranGen = new Random(100);

       // error at initialising i

       // i should be from 0 to MAXCHEESE value

       for (int i = 0; i < MAXCHEESE; i++) {

           names[i] = "Cheese Type " + (char) ('A' + i);

           prices[i] = ranGen.nextInt(1000) / 100.0;

           amounts[i] = 0;

           System.out.println(names[i] + ": $" + prices[i] + " per pound");

       }        

   }

}

7 0
3 years ago
An air conditioner removes heat steadily from a house at a rate of 750 kJ/min while drawing electric power at a rate of 6 kW. De
Paraphin [41]

Answer:

a. 2.08, b. 1110 kJ/min

Explanation:

The power consumption and the cooling rate of an air conditioner are given. The COP or Coefficient of Performance and the rate of heat rejection are to be determined. <u>Assume that the air conditioner operates steadily.</u>

a. The coefficient of performance of the air conditioner (refrigerator) is determined from its definition, which is

COP(r) = Q(L)/W(net in), where Q(L) is the rate of heat removed and W(net in) is the work done to remove said heat

COP(r) = (750 kJ/min/6 kW) x (1 kW/60kJ/min) = 2.08

The COP of this air conditioner is 2.08.

b. The rate of heat discharged to the outside air is determined from the energy balance.

Q(H) = Q(L) + W(net in)

Q(H) = 750 kJ/min + 6 x 60 kJ/min = 1110 kJ/min

The rate of heat transfer to the outside air is 1110 kJ for every minute.

5 0
3 years ago
Which of the following can effect LRO?
aleksley [76]

Answer:

The lunar radiation environment, allowing scientists to determine potential impacts to astronauts and other life. It also will test models on the effects of radiation and measure radiation absorption by a type of plastic that is like human tissue. The results could aid in the development of protective technologies to help keep future lunar crew members safe. CRaTER was built and developed by Boston University and the Massachusetts Institute of Technology in Boston.

7 0
2 years ago
The corner store sells candy in ₵20, ₵30 and ₵50 packages. List all the ways in which the Candyman
Novosadov [1.4K]

Answer: I will list them down below!

Explanation:

He can buy 6, 50 cent candies.

He can buy 30, 20 cent candies.

He can buy 6, 30 cent candies and 6, 20 cent candies.

He can buy 15, 20 cent candies and 3, 50 cent candies.

He can by 3, 20 and 30 cent candies and 3, 50 cent candies.

That's it.

Hope this helps!

6 0
1 year ago
Which of the following is the class of ingredient which is the base for most baked items?
Ierofanga [76]

Answer:flour

Explanation:

3 0
3 years ago
Other questions:
  • A room has a width of 14.1 feet, a length of 15.5 feet, and a ceiling height of 12.0 ft. The average flow rate for this room's a
    6·1 answer
  • Plz help me
    12·1 answer
  • The amount of time an activity can be delayed and yet not delay the project is termed:_________
    14·1 answer
  • The temperature of a gas stream is to be measured by a thermocouple whose junction can be approximated as a 1.2-mm-diameter sphe
    7·1 answer
  • When -iron is subjected to an atmosphere of hydrogen gas, the concentration of hydrogen in the iron, CH (in weight percent), is
    5·1 answer
  • What form of joining uses heat to create coalescence of the materials?
    7·1 answer
  • In the following scenario, what could the engineers have done to keep the bridge from collapsing?
    8·1 answer
  • Determine the maximum height (in inches) that a lift pump can raise water (0.9971 g/ml) from a well at normal atmospheric pressu
    10·1 answer
  • Contrast moral and immoral creativity and innovation<br>​
    12·1 answer
  • assuming complementary inputs are available, the minimum number of transistors needed to realize a two input xor gate is:
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!