Computer Science: An Overview (12th Edition)
12th Edition
ISBN: 9780133760064
Author: Glenn Brookshear, Dennis Brylow
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Concept explainers
Expert Solution & Answer
Chapter 12, Problem 41CRP
Explanation of Solution
The number of different paths and time required to compute the distances between cities:
Travelling salesman problem deals with the optimization of the path of travel through different cities.
Each pair of city is connected by a unique road. There are
So, the total number of paths is as follows:
Therefore, there are
Now, time taken to compute length of a path is one microsecond
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Write python code for this :
Prepare a Dataset of 300 samples of Random Values of two Variables in range(1-1000). Let’s call these
variables as X and Y such that X > Y. The Values of Remainder and Quotient is to be calculated for each
sample (X, Y) pair such that Remainder = X % Y and Quotient = X / Y.
Design a Neural Network Architecture and Pipeline that can take X and Y as input as input and Predict the
values of Remainder and Quotient. You are to choose which Error Function you should be using. Derive
the weight update Equations.
Train the model for above generated Dataset for 10 epochs for all weights of the network using Python
code from scratch and show the weight updates. Also, verify if this reduces the error or not.
On an island, a group of people are living until a visitor arrives with an odd directive: everyone with blue eyes must leave the island as quickly as possible. Every evening, a flight will depart at 8:00. Everyone can see the colour of everyone else's eyes, but they are blind to their own (nor is anyone allowed to tell them). They also do not know the number of persons who have blue eyes, but they do know that at least one person has them. How long will it take the folks with blue eyes to leave?
Let M be the PDA defined by Q = {q, q0 , q1 , q2}, Σ = {a,b}, Γ = {a}, F := {q , q1}.δ(q0 , a , Z0) = {(q, Z0 ) } δ(q , a, Z0) = {(q , aZ0)} δ(q , a, a) = {(q , aa)} δ(q , b , a) = {(q1 ,e)} δ(q1 , b , a) = {(q1 ,e)} δ(q1 , b, Z0 ) = {(q2 , e)}
Describe the CFG and the language accepted by M
Chapter 12 Solutions
Computer Science: An Overview (12th Edition)
Ch. 12.1 - Prob. 1QECh. 12.1 - Prob. 2QECh. 12.1 - Prob. 3QECh. 12.1 - Prob. 4QECh. 12.2 - Prob. 1QECh. 12.2 - Prob. 2QECh. 12.2 - Prob. 3QECh. 12.2 - Prob. 4QECh. 12.2 - Prob. 5QECh. 12.3 - Prob. 1QE
Ch. 12.3 - Prob. 3QECh. 12.3 - Prob. 5QECh. 12.3 - Prob. 6QECh. 12.4 - Prob. 1QECh. 12.4 - Prob. 2QECh. 12.4 - Prob. 3QECh. 12.5 - Prob. 1QECh. 12.5 - Prob. 2QECh. 12.5 - Prob. 4QECh. 12.5 - Prob. 5QECh. 12.6 - Prob. 1QECh. 12.6 - Prob. 2QECh. 12.6 - Prob. 3QECh. 12.6 - Prob. 4QECh. 12 - Prob. 1CRPCh. 12 - Prob. 2CRPCh. 12 - Prob. 3CRPCh. 12 - In each of the following cases, write a program...Ch. 12 - Prob. 5CRPCh. 12 - Describe the function computed by the following...Ch. 12 - Describe the function computed by the following...Ch. 12 - Write a Bare Bones program that computes the...Ch. 12 - Prob. 9CRPCh. 12 - In this chapter we saw how the statement copy...Ch. 12 - Prob. 11CRPCh. 12 - Prob. 12CRPCh. 12 - Prob. 13CRPCh. 12 - Prob. 14CRPCh. 12 - Prob. 15CRPCh. 12 - Prob. 16CRPCh. 12 - Prob. 17CRPCh. 12 - Prob. 18CRPCh. 12 - Prob. 19CRPCh. 12 - Analyze the validity of the following pair of...Ch. 12 - Analyze the validity of the statement The cook on...Ch. 12 - Suppose you were in a country where each person...Ch. 12 - Prob. 23CRPCh. 12 - Prob. 24CRPCh. 12 - Suppose you needed to find out if anyone in a...Ch. 12 - Prob. 26CRPCh. 12 - Prob. 27CRPCh. 12 - Prob. 28CRPCh. 12 - Prob. 29CRPCh. 12 - Prob. 30CRPCh. 12 - Prob. 31CRPCh. 12 - Suppose a lottery is based on correctly picking...Ch. 12 - Is the following algorithm deterministic? Explain...Ch. 12 - Prob. 34CRPCh. 12 - Prob. 35CRPCh. 12 - Does the following algorithm have a polynomial or...Ch. 12 - Prob. 37CRPCh. 12 - Summarize the distinction between stating that a...Ch. 12 - Prob. 39CRPCh. 12 - Prob. 40CRPCh. 12 - Prob. 41CRPCh. 12 - Prob. 42CRPCh. 12 - Prob. 43CRPCh. 12 - Prob. 44CRPCh. 12 - Prob. 46CRPCh. 12 - Prob. 48CRPCh. 12 - Prob. 49CRPCh. 12 - Prob. 50CRPCh. 12 - Prob. 51CRPCh. 12 - Prob. 52CRPCh. 12 - Prob. 1SICh. 12 - Prob. 2SICh. 12 - Prob. 3SICh. 12 - Prob. 4SICh. 12 - Prob. 5SICh. 12 - Prob. 6SICh. 12 - Prob. 7SICh. 12 - Prob. 8SI
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- A wave is modeled by the wave function: y (x, t) = A sin [ 2π/0.1 m (x - 12 m/s*t)] Construct on the computer, in the same graph, the dependence of y (x, t) from x on t = 0 and t = 5 s in case the value of amplitude A corresponds to the first letter of your name: letter V A. A=0.1 mB. A=0.15 mC. A=0.2 mÇ. A=0.25 mD. A=0.3 mDh. A=0.35 mE. A=0.4 mË. A=0.45 mF. A=0.5 m G. A=0.55 mGj. A=0.6 mH. A=0.65 mI. A=0.7 mJ. A=0.75 mK. A=0.8 mL. A=0.85 mLl. A=0.9 mM. A=0.95 m N. A=1.05 mNj. A= 1.1 mO. A=1.15 mP. A=1.2 mQ. A=1.25 mR. A=1.3 mRr. A=1.35 mS. A=1.4 mSh. A=1.45 m T. A=1.5 mTh. A=1.55 mU. A=1.6 mV. A=1.65 mX. A=1.7 mXh. A=1.75 mY. A=1.8 mZ. A=1.85 mZh. A=1.9 m After constructing the graph, make the appropriate interpretations and comments from the result that you got graphically. How much is the wave displaced during the time interval from t = 0 to t = 5 s? Does it match this with the graph results? Justify your answer. Is the material transported long wave displacement? If yes, how much…arrow_forwardMy colleague, Dr. Strange tells me that there is an alternate universe where Sydney buses are never cancelled and they always run on time; in fact, bus timetables specify to the second the exact arrival and departure time of each bus on each stop. Sadly, in this alternate reality there are no free transfers (i.e., you need to pay for the full fare of every bus you ride) and different bus lines charge different fees (but the good news is that the fee is flat and does not depend on distance travelled). A travel plan is a sequence of stop-time pairs where stop is a location of a bus stop and time is when we arrive at that stop. The plan is feasible if for any two consecutive pairs (a, t) and (b, t′) in the plan there exists a bus that departs after t and arrives at b at exactly t′. That is, a travel plan does not allow us to walk between stops. Assuming that no two buses arrive at the same time at the same stop, a feasible plan uniquely identifies the bus lines that we need to take to…arrow_forwardA group of individuals are living on an island when a visitor arrives with an unusual order: all blue-eyed people must leave the island immediately. Every evening at 8:00 p.m., a flight will depart. Everyone can see everyone else's eye colour, but no one knows their own (nor is anyone allowed to tell them). Furthermore, they have no idea how many people have blue eyes, but they do know that at least one person has. How long will it take for the blue-eyed individuals to leave?arrow_forward
- Examine how the iterative and recursive algorithms compare on the same network. Do they have the same duration?arrow_forwardThe area of an arbitrary triangle can be computed using the formula area = √(s(s–a)(s–b)(s–c)) where the square root is applied to the entire product (Links to an external site.) and where a, b, and c are the lengths of the sides, and s is the semiperimeter of the triangle given (Links to an external site.) by the formula: s = (a + b + c)/2 EXTRA CREDIT: 10 points for adding a function named getInput that initializes the three side lengths from outside of main. Write a void function named (Links to an external site.) triangle that computes the area and perimeter (as well as the semiperimeter which will be used to compute the area) of a triangle based (Links to an external site.) on the length of the sides. The function should use five parameters (Links to an external site.)—three value (Links to an external site.) parameters (Links to an external site.) that provide the lengths of the edges and two reference parameters (Links to an external site.) that store (Links to an external…arrow_forwardHow can i find the number of paths possible for 0 toN stairs when the user may jumps 1 ,2 & 3 stairs at a time. Take the n from the user. Please solve this in linear time in Java programming language.arrow_forward
- A salesman has a number of cities to visit. They want to calculate the total number of possible paths they could take, visiting each city once before returning home. Return the total number of possible paths a salesman can travel, given n cities. If we have cities A, B and C, possible paths would be: A - B -> C A -> C -> B B -> A -> C B -> C -> A C -> B -> A C -> A > B which gives us 6 as the possible number of paths. Examples paths (4) → 24arrow_forwardGiven an abstraction of the City Tube Map where each node represents the city’s attraction, plan the trip for the tourist to visit. Start from node 1 that is their hotel, a group of tourists wants to visit all places. However, due to the time limitation, they can only visit each attraction once. To find the best order of places to visit, genetic algorithm can be used to derive the best possible solutions.arrow_forwardThe latest super-duper supercomputer has memory locations that are 64-bits wide. What is the largest unsigned integer that can be stored in one memory location? Suppose that we use sign-magnitude for storing negative numbers and dedicate one bit for a sign bit. What would be the largest POSITIVE integer that can be stored in a memory location.arrow_forward
- Using Python programming language. There are exactly N people living in a certain parallel universe. The Ith of these N people claim to be the parent of exactly Ai off these N people. However, some of these people may be lying - the person may either be telling the truth (in which case they have exactly Ai children) or lying down (in which case they can have any number of children). It is known that each person has at most one parent. Furthermore, as one would expect, a person's child is not allowed to also be their ancestor. What is the maximum possible number of truth tellers in this universe Required Output 2 Possible input 1 2 10arrow_forwardEach person in a group of n persons (n >= 4) has independent information known only to themselves. Whenever a person calls another person in the group, they exchange all the information they know at the time of calling. Design a sequence of calls (specifying the persons involved in each call) that they have to make in order to ensure that everyone knows all the information. How many calls are there in your scheme?arrow_forwardAn old encryption system uses 24-bit keys. A cryptanalyst, who wants to brute-force attack the encryption system, is working on a computer system with a performance rate N keys per second. How many possible keys will be available in the above encryption system? What will be the maximum number of keys per second (N), that the computer system is working with, if the amount of time needed to brute-force all the possible keys was 8192 milli seconds?arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Operations Research : Applications and AlgorithmsComputer ScienceISBN:9780534380588Author:Wayne L. WinstonPublisher:Brooks Cole
Operations Research : Applications and Algorithms
Computer Science
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Brooks Cole