Detecting Cycles in an Undirected Graph1.Give an algorithm that determines whether or not a given undirected graph G = (V, E) contains a cycle, your algorithm should run in O(|V |) time, independent of |E|. 2.A directed graph G = (V, E) is Singly connected if u → v implies that there is at most one simple path from u to v for all vertices u, v ∈ V . Give an efficient algorithm to determine whether or not a directed graph is singly c...
Knapsack ProblemYou are encouraged to work in groups (but not more than 2 persons in a group).Show all your computation to get full credit. Please put comments in your code. I will deduct points for uncommented codes. This assignment is for 200 points; double that of assignment 1. Knapsack Problem (60) 1. Consider a collection of K items out of which n items cannot be subdivided (0-1 knapsack) and m items can be divided into fractions (fracti...
Section A: RequiredTopics – complete Section A and any 2 of Section B Section A: • Required: explain how you solved the workshop problems. What tools and techniques did you use? What worked best for you, and what gave you the most problems when completing the workshops? Section B: • Complete any 2 of the following, if you answer all 3, only the first two will be marked • Discuss one aspe...
ObjectiveObjective The purpose of this assignment is to make sure: • You are familiar with dynamic memory allocation and two dimensional arrays. • You are familiar with the concepts of bounds checking and maintaining state. • You can work with pointers, structures, and files in C++. • You can approach a complex problem, break it down into various parts, and put together a solution. Program 1 - Snake Game You’re...
About Redwings Horse SanctuaryRedwings Horse Sanctuary rescues and looks after horses which have been mistreated by owners or abandoned. It is based in Aldergrove, BC and rescues horses from all over BC. It raises funds to help with its ongoing costs through a range of methods, such as; donations, sponsorship of horses, membership fees and sales through its gift shop of horse themed merchandise. It has a website but this is curren...
Fill in the Values to Run Your ProgramThe screen below has been designed to input the values for your mark request. Design ascreen similar to the one below and use a table in your design. Note the values are onlyfor display and you would have to enter them when you run your program. Note thatyour form should put the value of 0 (zero) in the number of courses and the total cost.Put an appropriate title on the screenv Create a Select Box option as...
Assignment 1The purpose of this project is to build a land registry, that is, an application that allowsa user to register a piece of land of a requested size and location. This first assignmentfocuses on arrays of objects, chaining, overloading, and getters/setters. It will evolvefurther as we add new features in Assignments 2, 3, and 4 as your understanding of Javaincreases. In building this application, you will demonstrate your understanding...
Question: Add a class Team which has the following fields: team number, game, maximum size, current size, whether mixed gender (Example might be : game = "monopoly", maximum size = 6, current size = 4 people, available = true) Constructor which sets team number, game and max size from parameter values, and sets the current size to 1, with available to true Add the following methods: ·addMember() which increments the current size by 1...
Question: Instructions ·Download from Studynet to your UH user area, the project which you submitted as Referred Cwk – FIRE to Studynet ·Unzip, and Re-name this folder as : FIREDemo - followed ONLY by your name e.g. if your name was Donald Trump you would save the file as FIREDemo-TrumpD (nothing more !) ·Perform the tasks specified below. Note: each task may have some challenging requests , if ...
Level 1: Maze built using Stack BacktrackingWhich level do you want to start at? (1-4): Note: once you complete a level you go on to the next regardless of the level you start on. So if I start on level 2 and complete it, I immediately go on to level 3 and then level 4. If I complete the 4th level the game is considered over (the end). LEVEL 1: (as demonstrated in class) Maze built using Stack Backtracking Create a maze of 21 rows x 70 columns R...
BackgroundBackground In this exercise, suppose you are a data analyst for an NHL franchise. In preparation for the league draft, the team general manager has asked you to make it possible for him to retrieve all current players born in a particular country (say, Sweden) broken down by position. Your predecessor passed along to you the player shapefile, but unfortunately the player's birth country is not included as one of the attr...
Project Scenario and BackgroundProject Scenario and Background You are in charge of the group that comprises the Information Technology & Services Department that supports a chain of large food and general merchandise stores. There are more than 25 stores scattered throughout Maryland; they vary in size from about 115,000 square feet to over 220,000 square feet for the newer stores. The Founder (who is also the CEO) is activel...
Task OverviewTask: The first programming project involves writing a program that computes the minimum, the maximum and the average weight of a collection of weights represented in pounds and ounces that are read from a data file. This program consists of two parts. The first part is the Weight class and the second part is the Program Core. The Weight Class is specified in integer pounds and ounces stored as a double precision floating po...
Create a Program for UNCP Snack Shoppe Receipt1.Create a program that computes and displays a well formatted receipt for customers at the UNCP Snack Shoppe. The user enters the price of the meal and the amount tendered. Assume a sales tax rate of 6.25%. Use setprecision(2) and appropriate fixed and showpoint commands in the program. Make sure decimals line up where appropriate for full credit. 2.Write program to generate and display r...
Exercise RequirementsThere are 18 marks on this makeup. You have 2 weeks from receipt to complete it. A 60% is required for a passing grade. All code should be documented and you should provide a status report and testing demonstrating that each exercise works. 1. Implement the command: status pid pid pid pid .The status for each process on the system can be found in the 2nd line of the file /proc/p...