Lab 5 555 Clock Timer And Dc Motor Speed Control Objectives 1 To Simulate And Op

Hi, I have been problems with this lab, please see attachment!

Note: You will use MultiSIM in XenDesktop to complete this assignment.

  • Lab 5:555 Clock Timer and DC Motor Speed Control

Instructions for completing the Lab report

  • The report is to be typed and prepared following the guidelines listed below.
  • Send MultiSim Circuit Files or other software specific files used in the course (if applicable) separately from the lab report.
 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
ORDER NOW

Lab 5 Traveling Salesperson Problem With Depth First Search We Will Explore Two

Lab 5- Traveling Salesperson Problem with Depth First Search

We will explore two algorithms for solving the very famous traveling salesperson problem. 

Consider a graph of cities. The cost on an edge represents the cost to travel between two cities. The goal of the salesperson is to visit each city once and only once, and returning to the city he/she originally started at. Such a path is called a “tour” of the cities. 

How many tours are there? If there are N cities, then there can be N! possible tours. If we tell you which city to start at, there are (N-1)! Possible tours. For example, if there are 4 cities (A, B, C, D), and we always start at city A, then there are 3! possible tours: 

(A, B, C, D) (A, B, D, C) (A, C, B, D) (A, C, D, B) (A, D, B, C) (A, D, C, B) 

It is understood that one travels back to A at the end of the tour. 

The traveling salesperson problem consists of finding the tour with the lowest cost. The cost includes the trip back to the starting city. Clearly this is a horrendously difficult problem, since there are potentially (N-1)! possible solutions that need to be examined. We will consider DFS algorithms for finding the solution. 

The DFS algorithm is exhaustive – it will attempt to examine all (N-1)! possible solutions. This can be accomplished via a recursive algorithm (call it recTSP). This function is passed a “partial tour” (a sequence of M cities (M <= N) which is initially empty) and a “remaining cities” (sequence of N cities). There are clearly M-N cities not in this partial tour. Thus the function recTSP will have to call itself recursively M-N times, adding each of the M-N cities to the current partial tour out of the remaining cities. If M=N we have a complete tour. 

For example, we start with recTSP ({A}). This will have to call recTSP ({A, B}), recTSP ({A, C}, and recTSP ({A, D}). Here is a partial picture of how the sequence of function calls is done. This tree is not something you build explicitly – it arises from your function calls. You traverse this tree in a “depth-first” manner, The numbers tell you the order in which the nodes are processed. 

Each leaf node is a complete tour, which you will compute the cost of. Note that each non-leaf node is an incomplete tour, which you can also compute the cost of. If the cost of an incomplete tour is greater than the best complete tour that you have found thus far, you clearly do not have to continue working on that incomplete tour. Thus you can “prune” your search. 

Just how hard are these problems? For example, if there are 29 cities, how many possible tours are there? If you can check 1,000,000 tours per second, how many years would it take to check all possible tours? Has the universe been around that long? 

Since this program may take too long to complete, be sure to output the tour and its cost when it finds a new best tour.  

We have to first develop the distance matrix, also called adjacency matrix. This adjacency matrix is populated using a given data file. You will run your program to find the best tours for 12, 14, 16, 19, and 29 cities.

Here is a sample code to populate the distance matrix

 public void populateMatrix(int[][] adjacency){

int value, i, j; 

for (i = 0; i < CITI && input.hasNext(); i++) { //CITI is a constant  

  for (j = i; j < CITI && input.hasNext(); j++){ 

    if (i == j) { 

          adjacency[i][j] = 0;

    }

    else {

          value = input.nextInt();

           adjacency[i][j] = value;

           adjacency[j][i] = value;

    }

  }

}

}

Here is an algorithm to compute tour cost

Algorithm computeCost (ArrayList<Integer> tour)

           Set totalcost = 0

      For (all cities in this tour)

          totalcost += adjacency [tour.get(i)][ tour.get(i+1)]

           EndFor

           If (tour is a complete tour)

                       totalcost += adjacency [tour.get(tour.size()-1)][0]

           EndIf

           return totalcost

 End computeCost

Here is the DFS algorithm

Use ArrayList for “partialTour” and “remainingCities” – This implementation is inefficient due to higher space complexity. 

/* requies : partialTour = <0>, remainingCities = <1,2, 3, ….N-2, N-1>

  ensures: partialTour = <0,…..n> where n E <1,2,3, …, N-1> &&

                Cost(partialTour) is the absolute minimum cost possible.

*/

Algorithm recDFS (ArrayList<Integer> partialTour, ArrayList<Integer> remainingCities )

           If (remainingCities is empty)

                       Compute tour cost for partialTour

                      If (tour cost is less than best known cost)

                                  Set best known cost with tour cost

                                   Output this tour and its cost

                       EndIf

           Else

                       For (all cities in remainingCities)

                                   Create a newpartialTour with partialTour

                                   Add the i_th city of remainingCities to newpartialTour

                                   Compute the cost of newpartialTour

                                   If (newpartialTour cost is less than the best known cost) // pruning

                                               Create newRemainingCities with remainingCities

                                               Remove the i_th city from newRemainingCities

                                               Call recDFS with newpartialTour and newRemainingCities

                                  EndIf

                       EndFor

           EndIf              

 End recDFS

The minimal cost path for 12 cities is 821, and the minimal cost path for 29 cities is 1610, but 29! = 8841761993739700772720181510144 (!!!!!)

Well, Sorry to disappoint you. We will have to wait until the midterm to implement the second algorithm!!! 

Turn in your source program and outputs as an attachment of this assignment. You should turn in your outputs in a PDF. Do not turn in PDF with source code!!! 

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
ORDER NOW

Lab 4c Loops Complete A Program To Draw Circles Arranged In A Grid For Example

Hi this is the second time i am posting this and I am hoping that someone can actually help me! This is actually really simple for someone who knows how to code in Java!!! The code that is already given, CAN NOT BE ALTERED!!!!!! It is simply filling in the two spots where it says “enter code here”. I know the second part has a loop within a loop. If someone can please hep. Thanks! Remember, you CAN NOT ALTER the given code!

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
ORDER NOW

Lab 2 Pre Lab Questions 1 Of The Four Major Types Of Microscopes Give An Example

Lab 2Pre-Lab Questions

1.   Of the four major types of microscopes, give an example of a scenario in which each would be the ideal choice for visualizing a sample.

2.   What is the difference between the coarse adjustment knob and the fine adjustment knob? When is it appropriate to use each of them?

3.   If you are using a compound microscope with an ocular lens with a magnification of 10x and an objective lens with a magnification of 40x, what is the total magnification?

4.   In this lab, we discussed preparation of a wet mount slide. Research and describe another slide preparation and an example of when it would be used.

Lab 2Experiment 1: Virtual MicroscopePost-Lab Questions

1.   What is the first step normally taken when you look through the ocular lenses?

2.   What does it mean that the image is inverted when you look through the ocular lenses?

3.   What new details are you able to see on the slide when the magnification is increased to 10x that you could not see at 4x? What about at 40x?

4.   Why is it important to be able to properly calibrate and measure objects viewed through a microscope?

5.   Describe the qualitative difference you notice with the different types of microscope views in the “Microscope Compare” and “Specimen Compare” exercises.

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
ORDER NOW

Lab 2 Fun With A Maze Csc 254 Please Complete And Get Part I Signed Off Before D

Okay so, I have uploaded my entire lab assignment ( just for clarity sake ). I have completed Part I and I would say half of Part II, but I am having trouble communicating two files to each other. I am already doing it once, but I don’t fully understand how I even did it so I don’t know how to apply it to another file. A quick summary of what the lab is, is a 3×3 maze (I will input what it looks like at the end but it may look weird with formatting) but I am to have a 3×3 maze with a 1 representing a wall, 2 represents the initial location, and 3 represents the end location. 002 010 030 This would be the Part 1 on the lab, but we are to replace wherever the player is (Number 2) with X, so it would be: 00X 010 030 And now I need to code instructions that I am able to move the X to the 3 and notify the user when you are unable to go a certain way due to a wall or out of bounds. Hopefully someone can help because the teacher was even willing to extend the deadline for me, but the book isn’t really helping with this.

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
ORDER NOW

Lab 1 Instructions Refer To The Attachments Topic Multi Drug Resistance Of Tuber

Lab 1 Instructions (Refer to the attachments)

  • Topic: Multi Drug Resistance of Tuberculoses in India 
  • Download      and review SBF Lab 1 Worksheet (Please use this      worksheet/template to complete the assignment)

In writing the assignment, first describe the context of your chosen health/behavioral issue as a brief introduction to the worksheet. Then fill out the ecological model worksheet. Overall, the assignment should not take more than 2–3 pages.

The focus of your analysis should be a very specific place (country, town, district). This could be a place where you have worked, or you may obtain readings and review websites to learn about a specific problem in a specific location. Please do not list generic factors like “norms” or “perceived susceptibility”. Let’s say you were looking at cancer screening in a particular locale. Community norms may be non-disclosure of health problems which might inhibit people from getting help. People may believe that cancer is possible, but studies have shown people perceive that ‘it cannot hapen to me’. Unless the factors listed are specific, you will have difficulty suggesting appropriate and reasonable interventions.

Also there needs to be a good link between analysis at the 5 levels of the ecological model and the Discussion – ‘evidence’ for one’s recommendations in the Discussion section should be clearly found in the outline of points in the analysis of levels of the ecological model.

At least one reference, which can be a weblink, is required. Any information gathered from a source other than your personal experience should be referenced.

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
ORDER NOW

Lab 1 Active Fillers Lab Generation The Purpose Of The Lab Is To Study Active Li

:

Laboratory assignments will be done most weeks. They will consist of designing, testing, building, and simulating circuits. Most of lab directions will be brief. It is expected at this level that students should be able to determine appropriate design, testing, and procedures.Laboratory assignments must contain the following sections.• Introduction: A brief introduction of what the goal of the experiment, the design, and the testing results.• Theory: Detailed information regarding the experiment’s theoretical background. At a minimum a circuitdiagram should be included with an explanation of how the circuit works, theory of the modulation technique being used, and any necessary computations (There my not be any computations).• Simulations: When appropriate, a simulation of the circuit should be done with a extensive discussion on it. I will let you know whether a simulation is needed or not.• Testing and Measurements: The circuit should be built and tested. I will not tell you what measurements you need to do. A detailed analysis of the measurements must be included• Summary: Summarize the findings of your design.• ImagesfromCadence/OrcadortheOscilloscopemustbeprintedoutandtapedinyourlaboratorynotebook.• All procedures, calculations, equipment used, and components used should be clearly stated in the report.• Your name should appear on each page in the top right•

• Work must be clear and well ordered.• If a mistake is made DO NOT ERASE IT. Put a single strike-through on the work and initial it.• Tables and Figures need labels and should be referenced.• Staple all of the pages in order before submitting a the lab.

Lab 1 : Active FillersLab GenerationThe purpose of the lab Is to study active liters Students are required to research . `sign Simulate . build andlost second order killersLab Requirements*1 . Dusan &amp; and andur law pass Hiker with unity gain and a cutall frequency at approximately 150 KHE`2. Anakin a End ander high pass Hifor with unity gain and a cutall Iraqwinner Of approximately 5 kile3. Cascade the High and law pass filter to create a bandpass litter .

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
ORDER NOW

Lab Assessment 2 Isol 631 Operations Security University Of The Cumberlands Dr C

Lab Assessment 2 – ISOL 631 – Operations Security University of the Cumberlands Dr. Charles DeSassure 

Instructions 

1. Answer each question thoroughly. 

2. Include your full name as a header. 

3. Do not copy and paste information from the Internet, you will receive a zero for this assignment. 

4. You may research information from the Internet and rewrite it in your own words (acceptable). 

5. Do not copy another student work. The University of the Cumberlands has a strict policy relating to cheating. Think before you act!

6. Provide your answers as outlined below. Each answer should be on a separate page.

7. Assessment: 25 pts per question. Please research and explain your answers. Do not type one or two sentences and expect to receive full credit. And please do not include meaningless words. 

8. After you have answered each question, submit in MS Word document format. 

Overview  In this lab, you identified human nature and behaviors in hierarchical and flat organizations, you found ways to ensure employees overcome apathy related to security awareness, you identified how security policies shape organizational behaviors and culture, you compared hierarchical and flat organizational structures, and you created an organizational policy implementation plan for a combined organizational structure.

1.  What are the differences between flat and hierarchical organizations? 

2.  What is difficult about policy implementation in a flat organization?

3.  What is difficult about policy implementation in a hierarchical organization?

4.  How do you overcome employee apathy toward policy compliance?

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
ORDER NOW

Lab 1 Motion Lab 1 See Textbook Pages 36 39 Chapter 2 Lesson 2 Involves The Gr

how do you figure out the averages in PH220 Lab 1 after filing in the graph. also how do you figure out the segments?

  • Attachment 1
  • Attachment 2

Lab 1 – MotionLab 1 (See textbook pages 36-39, Chapter 2, Lesson 2) involves the graphical analysis ofvelocity. This simulation can be downloaded from Grantham’s Website under PH220….

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
ORDER NOW

Lab Activity 13 Correlation And Regression Stat 1350 Part 1 Restaurant Tips Is T

Lab Activity #13: Correlation and Regression

STAT 1350

Part 1: Restaurant Tips

billtipwww.lock5stat.com/statkeyFlorida Lakes (Mercury vs Ph)Restaurant Tips (Tip vs Bill)

  1. First, let’s attempt to examine and describe the relationship between Bill and Tip. In the space below, comment on the form, direction, and strength of this relationship. If you want to, in StatKey, you can click on the “Show Regression Line” box on the right to see how far the data points fall from the regression line. 

·            Form:

·            Direction:

·            Strength:

  1. Use the summary statistics you are given to construct the regression equation that will allow us to predict Tip based on Bill. Be sure to type it in equation below. We will come back to the equation later on in this activity.
  1. Let’s focus now on the correlation between Bill and Tip. You should see this value among the Summary Statistics that are automatically computed. 
  2. What is the value of the correlation? Please write or type this below.
  1. What does the correlation coefficient tell you about the strength and direction of the relationship between Bill and Tip?

4.        Look carefully at the regression equation you wrote down in response to Question 2 above. Please answer the following questions based on this equation.

a.         What is the slope? Please write an interpretation of this value.

b.        What is the intercept? Again, please write an interpretation of this value.

c.         Suppose that George is a customer at the restaurant and his bill is $55.75. How much (in dollars) would we predict his tip to be?   

d.        Recall the value for the correlation that you found above.  Use this information to find the value of  r-squared. Write ths value below and explain how it should be interpreted. 

e.         What percent of the variability (or variation) in Tip can NOT be explained by the regression equation? 

f.           Suppose you learn of another customer, Lucy, who has a bill of $100. Why would we NOT want to use the regression equation to predict theamount of money Lucy will leave for a tip

5.        Suppose you are told that one customer’s data was accidentally left out of the data set. Peter had a bill of $35, and he left a tip of $15.  How do you think this one data value would change the correlation between the variables? Why? 

Part 2: More reasoning about scatterplots and correlation

6.        If you switch X and Y, the sign of the correlation changes. (Assume here that X and Y are quantitative variables)

a.         True                b. False

7.        Correlation is not affected by skewness and outliers.

a.         True                b. False

8.        The strength of a correlation depends on its sign, positive or negative

a.         True                b. False

9.        A coefficient of correlation of -0.96 indicates a very strong negative correlation.

a.         True                b. False

10.  If the correlation between total semester score and attendance is 0.85, then ____% of the variation in total semester score is explained by the regression equation.

a.         0.85%

b.        8.5%

c.         72.25%

d.        92.20%

11.  A professor examines the relationship between minutes studying and score on the midterm (out of 200 points) for students in his course using data from 320 randomly selected students. The data is presented in the scatterplot below. True or False: The correlation for this data set is in units of “points per minute studying.”

  1. True
  2. False

12.  In Florida, the pH levels and mercury levels of several lakes are measured. From these measurements, researchers construct a regression equation in order to predict mercury levels based on pH levels. The equation is: Predicted mercury level = 1.531 – 0.152(pH level).

It is found that this regression equation explains approximately 32% of the variability in mercury levels. Based on this information, the correlation between mercury level and pH level must be

a.         -0.152

b.        -0.32

c.         -0.57

d.        We cannot answer this based on the given information.

13.  Suppose an algebra professor found that the correlation between study time (in hours) and exam score

(out of 100) is r = .80, and the regression equation was found to be: Predicted exam score = 20 + 4(study

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
ORDER NOW