• Q : Algorithm verification....
    Data Structure & Algorithms :

    How many levels of nesting are there in this design? Give a set of values that will test the normal operation of this program segment. Defend your choices.Give a set of test values that will caus

  • Q : Prove the np problem....
    Data Structure & Algorithms :

    Prove that the following problem is NP-complete. Given an undirected graph G = (V,E), a subset E0 of E, and an integer k, is there a cycle of length at most k in G that includes every edge in E0?

  • Q : The weight-length problem is defined as....
    Data Structure & Algorithms :

    The Weight-Length problem is defined as follows: Let G(V,E) be a directed graph with a non-negative weight function w(e) and a non-negative integer length function l(e). Given a non-negative number W

  • Q : Problem is to decide whether g has a no 2-path set....
    Data Structure & Algorithms :

    The No 2-Path Problem is as follows. You are given a graph G = (V,E) and an integer k. For this problem, we will call a set I of V "No 2-Path Set" if, for any two nodes v, u in I, the edge (v, u) does

  • Q : Bubble sort is a simple sorting algorithm....
    Data Structure & Algorithms :

    Bubble sort is a simple sorting algorithm. It works by repeatedly stepping through the list to be sorted, comparing each pair of adjacent items and swapping them if they are in the wrong order

  • Q : Give an optimal algorithm to determine m from the ciphertext....
    Data Structure & Algorithms :

    Suppose that (G; enc; dec) is a public-key encryption scheme such that enc is a deterministic, i.e, non-probabilistic, algorithm. Suppose that this scheme is used to encrypt a message m that

  • Q : Draw a decision table to represent the type of treatment....
    Data Structure & Algorithms :

    Members of the Club whose order value exceeds $100 in a year and have a good payment record are given priority treatment. Where a membership has been over 5 years the member will get priority treatmen

  • Q : Logic for a program that contains housekeeping....
    Data Structure & Algorithms :

    Draw a hierarchy chart and design and the logic for a program that contains housekeeping, detail loop, and end-of-job modules' and that calculates the service charge customers owe for writing a bad ch

  • Q : Design backtracking d&c algorithm....
    Data Structure & Algorithms :

    In this problem we are given a family of finite sets S1,...,Sm and a number k<|F|.we call U = Ui=1to m Si universal set and denote its size n.We are asked to find a subfamily F'c F of size k such t

  • Q : Draw a relational algebra tree....
    Data Structure & Algorithms :

    Based on this schema, a query for listing customers who made a booking and employee whose handle the booking for Bustani Hotel from 

  • Q : Design an if-then-else statement or a flowchart....
    Data Structure & Algorithms :

    Design an If-Then-Else statement or a flowchart with a dual alternative decsion structure that display "Speed is normal" if the speed variable is within the range of 24 to 56. If speed holds a value o

  • Q : The top level of the hierarchy....
    Data Structure & Algorithms :

    The Sunholm Solar executives liked your general specification memo for the website and have entered into a contract with you to develop the site. They are ready to proceed to the next step in the deve

  • Q : Number of page transfers during this sequence of references....
    Data Structure & Algorithms :

    Assume that the replacement algorithm is first-in-first-out and find the number of page transfers during this sequence of references starting with an empty main memorywith three page frames. Repe

  • Q : Graphs and trees provide you with ways to visualize data set....
    Data Structure & Algorithms :

    Graphs and trees provide you with ways to visualize data sets, and the opportunity to do analysis on the data (e.g., shortest path). Knowing the structure of a database enables you to choose a proper

  • Q : Divide-&-conquer algorithm to construct a complete binary....
    Data Structure & Algorithms :

    Suppose you have an unsorted array of n numbers. Give a divide-&-conquer algorithm to construct a complete binary search tree containing the data items of the array. Each node in the tree is repre

  • Q : Analyze the differences between the two algorithms....
    Data Structure & Algorithms :

    Write an algorithm, using pseudo code to perform one of the following tasks. Then, choose one algorithm that was created and posted by another student to solve the same problem, and analyze the differ

  • Q : Classify the traditional grade school algorithms....
    Data Structure & Algorithms :

    Use big-theta notation to classify the traditional grade school algorithms for addition and multiplication. That is, if asked to add two numbers each having n-digits, how many individual additions mus

  • Q : First two training iterations of backpropagation algorithm....
    Data Structure & Algorithms :

    Consider a two-layer feedforward ANN with two inputs a and b, one hidden unit c,and one output unit d. This network has five weights (w,, web, wd, wdc, wdO), where w,o represents the threshold we

  • Q : Algorithm that finds the maximum such sum....
    Data Structure & Algorithms :

    Give an algorithm that finds the maximum such sum. Make your algorithm as efficient as possible. Describe the algorithm briefly in English and in psuedo code.

  • Q : Create the dfd for your shopping trip....
    Data Structure & Algorithms :

    Consider the process that you would use to purchase groceries for the week. Create a DFD that models that process. Start from the time that you write down your shopping list and continue until you hav

  • Q : Flowchart which finds the height of the tallest student....
    Data Structure & Algorithms :

    Each record in a student file contains among other data, the student's HEIGHT. Draw a flowchart which finds the height of the tallest student.

  • Q : Draw a flowchart having a do loop....
    Data Structure & Algorithms :

    Each record in a student file contains among other data, the student's HEIGHT. Draw a flowchart which finds the height of the tallest student.

  • Q : Algorithm for melon of different weights....
    Data Structure & Algorithms :

    You are melon-selling farmer and you have melons of different weights. A customer comes to you and asks you for exactly k pounds of uncut melons and you need to determine whether you can ful

  • Q : Represent the logic of a program that allows the user....
    Data Structure & Algorithms :

    Draw a flowchart and write pseudocode to represent the logic of a program that allows the user to enter a value. The program multiplies the value by 10 and outputs the result.

  • Q : We are given a weighted dag-that is, a directed acyclic....
    Data Structure & Algorithms :

    Here is a problem: we are given a weighted DAG-that is, a directed acyclic graph with a weight on each edge. You can assume that all the weights are non-negative. One of the nodes is called start and

©TutorsGlobe All rights reserved 2022-2023.