4. Given a commected weighted directed graph with n vertices, what is the maximum mumber of possible tours in the T...
Let G be a directed graph on n vertices and maximum possible directed edges; assume that n ≥ 2. (a) How many directed edges are in G? Present such a digraph when n = 3 assuming vertices are 1, 2, and 3. You do not have to present a diagram, if you do not want to; you can simply present the directed edges as a set of ordered pairs. b) Is G, as specified in the problem, reflexive? Justify briefly....
a directed graph has n+2 vertices: 2 of these are S and T. the rest have integer labels 1...n. for every vertex labelled i, 1 is smaller than or equal to i and i is smaller than or equal to n. there is an edge from S to i, and an edge from i to T. draw the graph. how many distinct dfs sequences are there starting at S. explain
10. Consider the Traveling Salesperson problem (a) Write the brute-force algorithm for this proble that considers (b) Implement the algorithm and use it to solve instances of size 6, 7, (c) Compare the performance of this algorithm to that of Algorithm all possible tours 8, 9, 10, 15, and 20 6.3 using the instances developed in (b) Algorithm 6.3 The Best-First Search with Branch-and-Bound Pruning Algorithm for the Traveling Salesperson problem Problem: Determine an optimal tour in a weighted, directed...