Answer:
Explanation:
Algorithm:
a. In each day, you will have to loop through the hotels that come to the hotel after you stayed last night.
b. If a hotel 'h' is found at more than 'd' distance away from last stayed hotel, then the hotel previous of 'h' is chosen to wait for that night. This is the greedy step, and you stay in this hotel.
c. The process for steps a and b is then repeated until we've reached the last hotel xn.
Running time:
Notice that the worst case occurs if each hotel is at a distance of successive multiples of 'd'. The best move is to estimate the distance to each hotel twice the whole computation in the scenario.
Thus, the total running time that could occur in the worst case is O(2n) = O(n). This is said to be linear time.
Answer:
132
Explanation:
We convert each number to base 10 (decimal) and multiply.
So 1011₂ = 1 × 2³ + 0 × 2² + 1 × 2¹ + 1 × 2⁰
= 1 × 8 + 0 × 4 + 1 × 2 + 1 × 1
= 8 + 0 + 2 + 1
= 11₁₀
1100₂ = 1 × 2³ + 1 × 2² + 0 × 2¹ + 0 × 2⁰
= 1 × 8 + 1 × 4 + 0 × 2 + 0 × 1
= 8 + 4 + 0 + 0
= 12₁₀
So, 1011₂ × 1100₂ = 11₁₀ × 12₁₀ = 132₁₀
So, the decimal equivalent of the product of 1011 and 1100 is 132
Using/driving with an electric car or using car that is ecologically friendly (less pollution) Ex.Bio Fuel
Answer:
A pneumatic system is a system that uses compressed air to transmit and control energy. Pneumatic systems are used extensively in various industries. Most pneumatic systems rely on a constant supply of compressed air to make them work. This is provided by an air compressor.
A hydraulic system is a drive technology where a fluid is used to move the energy from e.g. an electric motor to an actuator, such as a hydraulic cylinder. The fluid is theoretically uncompressible and the fluid path can be flexible in the same way as an electric cable.
Explanation:
<h3>Examples of pneumatic systems and components
</h3><h3>Air brakes on buses and trucks.
</h3><h3>Air brakes on trains.
</h3><h3>Air compressors.
</h3><h3>Air engines for pneumatically powered vehicles.
</h3><h3>Barostat systems used in Neurogastroenterology and for researching electricity.
</h3><h3>Cable jetting, a way to install cables in ducts.
</h3><h3>Dental drill.</h3>
<h3>Hydraulic systems use the pump to push hydraulic fluid through the system to create fluid power. The fluid passes through the valves and flows to the cylinder where the hydraulic energy converts back into mechanical energy. The valves help to direct the flow of the liquid and relieve pressure when needed.</h3>