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
Paraphin [41]
3 years ago
11

data structureWe have two containers: one has a capacity of three gallons of water, the other five gallons. Both are initially e

mpty, although we have access to a large water fountain. We can take a non-full container and fill it completely up with the water, or we can completely empty a container (with water in it) into the fountain, or we can pour the contents of one container into the other until either the first is empty or the second is full. Our goal is to find a sequence of actions we can take to end
Computers and Technology
1 answer:
ra1l [238]3 years ago
7 0

Answer:

Answer explained below

Explanation:

This problem can be represented on a graph by considering each state (or configuration) of the pair of containers as a vertex of the graph. We will be having 24 vertices, since the first container can have 0, 1, 2 or 3 gallons and the second can have 0, 1, 2, 3, 4 or 5 gallons of water. So, we will be having vertices like (0, 0), (0, 1), (0,5), (1, 0), (2, 3), (5, 5) etc.

The edges will be directed, and a vertex will be having an edge to it from another vertex if the configuration of the later vertex can be reached from the former vertex by any one of the legal moves. For example, from (2, 3) we can get (0, 5) by transferring the contents of the first container to the second. So there will be an edge from (2, 3) to (0, 5).

You might be interested in
Which is an example of Raw Input?
NISA [10]

Answer:

Website collect data about each person who visits.

Explanation: Raw input or raw data is a type of data that has been collected or gathered from many sources, but have not been processed or filtered to obtain any type of information.

So, in given example the data of users, that has been collected from website is random data not information. This is the reason, "option A" is suitable example of Raw Input.

4 0
4 years ago
Identify a true statement of a JavaScript program in a web form.
zalisa [80]

Answer:

The answer is option(a).

Explanation:

JavaScript is a language for client scripting, that is used to generate web pages. This language is developed for a standalone platform like Netscape. It is used to create a dynamic web page as well as to add some new effects to websites. The JavaScript can be moved on to the CGI system on a web page and the JavaScript code involving the necessary data may be returned by a CGI program. and other options are not correct that can be defined as:

  • In option b, JavaScript is not a closed-source programming language.
  • In option c, It is not configured for actuators engines.
  • In option d, It is not a bug-free language.
7 0
3 years ago
Which country has the best land soldier​
irina [24]
China India United Kingdom France Germany turkey South Korea
6 0
3 years ago
Read 2 more answers
You are working in a medium-sized company and are trying to convince your boss that you need to enter the global market. Your bo
VARVARA [1.3K]

What is global market and how does digital media play a role in the global market?

Several years back, it took you a couple of months to import products into a country or export goods to a market in another country. Doing so was tasking and only huge trading companies were able to take the risk. The emergence of global marketing involves conceptualizing and then conveying a final product or service worldwide, in different countries. Global marketing is more than just conceptualizing and selling a product worldwide. The whole process involves actual planning, production, placement, and promotion of a company’s product in a worldwide market.  

Digital media has and continues to offer brands greater opportunities than ever before to connect with global audiences. More recently, I.T, and particularly the internet, has shrunk the world further. Consumers can get products in a matter of days just by a click of a mouse button or businesses can have partners half a world away. With almost 2.5 billion active social media users worldwide, it makes sense for brands to find audiences through these channels.

Since the emergence of internet, even small to mid-sized firms are able to reach customers globally. With proper execution, globalization can bring many benefits into your organization.  

1. New Revenue Potential

Taking this business to new global levels will get us access to a much larger base of customers. If everything goes as planned, we will enjoy increased revenues and the company will be exactly the shot of life it needs to take its revenues to new heights.

2. Lower Budgeting Costs  

With a common messaging to be done, our marketing budget will be reduced significantly and will help maintain profit margins.  

3. Ability to Help More and More People.

The solutions this company offers without a doubt has a potential to help customers all over the world improve their lives in some way. It will be able to help an exponentially greater number of people find answers to new challenges this company is able to solve.

Despite having many advantages of global marketing, it begs the question, what is that one challenge the company will face if it moves into a global market? Although we may have internet, nothing is able to beat our personal presence to our prospects and distribution partners. Not to mention the costs related to logistics, at some point, we will have to figure out the costs of doing long distance business in other regions of the world.

There are major disadvantages of global marketing

1. Cultural Barriers

Not every culture will be suitable for the products that our company offers. Crossing these cultural barriers might be cumbersome and very expensive for the company. We might have to adapt to certain rules that govern specific countries.

2. Inventory Management

If we are not careful, huge unused stocks may pile up and this may happen due to under or overestimation of projections or launching in a hurry without proper market research.  

3. Product Customization

We may be required to have a bigger budget that will enable us customize our products. Product customization will take us extra time to implement. Without sufficient marketing, this might be hard to achieve.

7 0
4 years ago
Write a Python program to replace at most 2 occurrences of space, comma, or dot with a colon. Hint: use re.sub(regex, "newtext",
charle [14.2K]

Explanation:

The "re" module in python provides various functions to perform complex string operations easily.

For example, you can check whether a specific word exists in a given string or to replace it with some other word.  

Some of the functions in the re module are:

re.findall

re.search

re.sub()

We are particularly interested in the re.sub() function, we can use this function to replace the occurrences of space, coma or dot with semicolon.  

Syntax:

re.sub(pattern, replace, target_string, n).  

Where pattern = space, coma or dot  

replace = semicolon  

target_string = any string containing spaces, coma and dots

n = number of times you want the replacement to be done  

Code:

import re  

target_string = "Hello world,code,code."  

replace = ":"

pattern = "[ ,.]"

print(target_string)

print(re.sub(pattern, replace, target_string, 2) )

Output:

Hello world,code,code.

Hello:world:code,code.

It replaced the first white space and coma with semicolon, if we increase the n to 4 then the output is

Hello:world:code:code:

As expected, it replaced all of the space, coma, and dots with semicolons.

7 0
4 years ago
Other questions:
  • to create a cover letter to send to a potential employers along with a resume what software program should you use
    10·1 answer
  • fill down feature on a formula and you need to keep a cell reference the same which one will allow you to keep the same cell ref
    15·1 answer
  • Please help me ! All you do is just put it it all in your own words ! Please this is for my reported card!i don't know how to pu
    15·1 answer
  • Where is most of the information processed in a computer
    13·1 answer
  • What will be the result of running the following code fragment? int year = 0; double rate = 5; double principal = 10000; double
    14·1 answer
  • Im lonnnelllly........................who want to date
    11·1 answer
  • What is an accessor in Java?
    12·1 answer
  • List resource you can utilize if you are experiencing technology issued
    5·1 answer
  • How much download speed does netflix take away from gaming
    12·1 answer
  • Q.3.1 Explain why devices on a network need addresses. (5)​
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!