Huffman code

Algorithms Final Exam

Assigned: 11/30/2021 at 2:10pm. I have explained the questions in class on 11/30.

Due: 12/02/2021 4:00pm on Blackboard (email submissions will not be accepted)

Weight: 25%

Late policy: Late submissions not allowed. For completeness, as before, it is good to state anyway that there will be 25 pts penalty for every late day. But, this is the final exam and the letter grades need to be submitted shortly after the due date. Therefore, you may not get your letter grade if you submit late.

There are 5 questions and each one is 20 points.

When submitting the document, make sure you include all the answers in a single file (such as MSWord) and use the following filename format: YourFullName_Final.doc

For each question you must include a figure (or a table, or even a pseudocode) for demonstration such as the tables we create in Boyer-Moore or dynamic programming and explain that figure as part of your answer. You may not get full credit for a question without a figure and a sufficient explanation of it.

Graduate students: In addition to the items above, for each question (except Question 5) you must include a pseudocode and briefly explain it.

  1. In Chapter 8, Slides 14-19, we covered optimal binary search trees and explained how to compute the average/expected number of comparisons in a successful search in a given binary search tree.
Symbol2345789
Probability0.20.10.250.150.150.10.05

Table 1. Symbols and their probabilities

Answer the following briefly:

  1. What is the greedy binary search tree for the table given in Problem 1 and what is its average number of comparisons.
  2. Is the following tree better than your solution? Why or why not?
  • What is Huffman code (Chapter 9 Greedy Technique, Slides 16-17) for the symbols given in Table 1? Show your work.
  • Slide 4 of Chapter 8, solve the problem for the following row with n=9

5, 7, 1, 2, 1, 3, 10,  7, 1.

Show your work.

  • In Chapter 6, Slide 34, heapsort is demonstrated using max-heap. Use min-heap to sort that list. Show your steps (what is your bottom-up constructed heap etc).
  • Pick only one of the options below.

Option 1: Chapter 7, Slide 7 uses Horspool’s string searching algorithm. Solve that example using the Boyer-Moore algorithm. Explain your steps.

Option 2: In Chapter 7, we talked about the issues related to deleting an item from a hash table using Closed Hashing. Lazy deletion refers to the concept of marking an element as deleted, rather than erasing it entirely (https://en.wikipedia.org/wiki/Lazy_deletion). Explain how that can help on the example of Slide 20. After all the keys are inserted, perform the following:

insert “KID”

delete “A”

search “KID” (show that you can still find it?)

insert “M”

Software architectural principles in contemporary mobile software

Presentation (25 slides) for the paper: Software architectural principles in contemporary mobile software: from conception to practice

paper url: https://www.semanticscholar.org/paper/Software-arc…

Audio 3D game

I have a game without an audio. I need you to add an audio to it please. I have attached the link of the game. Thank you

https://filebin.net/kfna9skt4mnovny3

Effective comparison/contrast essays highlight how similarities and differences reveal something important about each film, or the filmmaker(s).

Final Paper Guidelines

Intro to Film, Fall  2021

  • This paper is due on 11:59 PM December 13th. It makes up 25% of your overall grade (20% for students in the Scholars Program. Late papers will be lowered a half grade for every day the assignment is late, with no more than 3 days after the final due date to submit.
  • 7-10 pages in length, double-spaced, typed, 12 point font, with a title page (the title page is not part of the page count).
  1. Choose TWO FILMS to watch that are either:

A) of the same genre, you may choose from any of the following: western, gangster, musical, horror, sci-fi, film noir, adventure, comedy, action, romantic comedy, crime, fantasy.

OR

B) by the same director.

  • Compare and contrast how the two films you selected use the elements of the ONE OF THE FOLLOWING in their narrative:

– mise-en-scène,

– cinematography

–  editing

–  sound

  • Rather than offering a catalogue of your observations regarding the films’ similarities and differences, your essay should pose an argument about the significance of the connection. Your thesis should not simply state that, “films X and Y treat theme/character/plot element Z similarly and differently/similarly.” You should pose a theory as to WHY the filmmaker(s) made these specific stylistic choices and how they contribute to shape the overall form.
  • Use specific examples of shots or scenes to support your argument. This is NOT a plot recap.
  • Effective comparison/contrast essays highlight how similarities and differences reveal something important about each film, or the filmmaker(s). Ask yourself why it is important to examine these films together and what they reveal about either the genre or the filmmaker (depending if you choose A or B).
  • Analyze the stylistic element in specific detail, but don’t just describe the technique used; try to determine their function in the films. Why might these stylistic choices have been made? What do they seem to mean for the film?
  • No later than Monday November 1st  by 11:59PM let me know your film selection and which element of cinema you will analyze for your take home paper. You will submit this through Canvas under the assignment “Final Paper Topic”. You do not need to upload as a .doc/.pdf, you can write it directly into Canvas with “text entry”. You will still need to come up with a thesis for your paper, but you do not need to submit this to me. I only need to know which films you’re selecting and which element of cinema you will be writing about.
  • Example) “I will be exploring Quentin Tarantino’s use of mise-en-scene in Pulp Fiction and Kill Bill Vol.1.”
    • Example) “I will examine how sound is utilized in the horror genre by analyzing this stylistic element in The Shining and The Ring.”
Fundamental Attribution Error.

Although this assignment is title a “research” paper, it really more of a pseudo-research paper. Normally a researcher would begin by researching literature published by other researchers. By learning about a behavior, the researcher begins to design his or her own questions and research design. In our case, I am giving you the research design. In addition, our sample size (i.e. the number of people we are going to investigate) is way too small for us to generalize our results. Finally, what we are doing has already been studied. 🙂

With that being said, here is the assignment.

Students will complete the Attribution Assignment (see attached) and collect data from their participants. Once the data has been collected, students will research the Fundamental Attribution Error. Students will then compile their findings into a pseudo-research paper.

This assignment is worth 50 points and is due on December 4th. Please submit your assignment as an attached document.

Grading of this assignment is based on format, content, and application of material. Unlike the previous papers, this paper will include the main areas of published research.

  • Introduction – In this section, student will introduce the reader to attributions and the Fundamental Attribution Error. This is where your research will go. What did you learn about attributions and what was your source?
  • Methods – In this section students will describe what was done. How was data collected?
  • Results – This is where students will communicate what they “observed” by gathering data from their participants.
  • Discussion – Normally, the discussion and the introduction are the longest parts of published research. These are the areas the author (i.e. you) can expand on your ideas. It is also where the author explains what the results mean. For example, if evidence supports the Fundamental Attribution Error, how can we use this information to enhance our behavior?
  • References – As with all of the other assignments, you must list your references on a reference page.

NOTE: Each of these “sections” should only be a short paragraph. The entire paper should be between 3 and 5 pages, not including your reference page.

Impact of the government’s fiscal package on the economy

An economy is performing at just under potential GDP with an output gap of -0.2%. Unemployment is low, at 4.5%, and firms are beginning to report difficulties in filling vacancies. Wage inflation is currently at 2.2%; inflation is at 1.8%. The central bank is operating a neutral monetary policy. This economy depends heavily on exports to fuel growth. Trading partners’ real GDP growth is forecast to increase strongly over the next three years. Next year is an election year. The current government has announced a fiscal package based around increases in current spending. This is a high income economy and it is not in a monetary union.

1. Use a business cycle diagram and an AD/AS diagram to show the current position of the economy. Use arrows on your diagrams to show the movement of the economy.

2. Explain the likely impact of the government’s fiscal package on the economy, using relevant diagrams and equations. How do you think the central bank is likely to react? Explain your answer. In your answer to question two, you should refer to the policy mix.

Requirements: 2000 words

key players in this case and explain their role in this case.

Imagine you work for a criminal defense attorney, and they’ve asked you to do some research to help them with their upcoming court case.

Research a high-profile criminal case that occurred in the United States within the last 15 years to examine its progression through the court system.

Write a 350- to 525-word report in which you:

  • Summarize the case briefly (no more than 75 words). What crime was committed? What was the charge(s)?
  • List the key players in this case and explain their role in this case.
  • Analyze the involvement of courts. Describe the court type and why it had jurisdiction.
  • Explain the stages that were carried out in this criminal trial. Was there a pretrial stage? Did the defendant resort to a plea bargain?
  • Explain the outcome of the sentencing process. What was the rationale for the sentence?

Cite 1 to 2 sources to support your assignment.

Format your assignment according to APA guidelines.

Diverse Families

Article Four: Tips for Working with DIverse Families Introduction Diverse families–such as single-parent, blended, multigenerational, foster, and same-sex partners–present challenges for teachers striving to meet the needs of all children effectively. The author, Ray, offers a detailed discussion of the different family types and provides suggestions about how teachers can work more effectively with the diverse families. The Assignment Read the article: Family-Friendly Teachers: Tips for Working with DIverse Familes: Family-Friendly_Teachers_Tips.pdf Family-Friendly_Teachers_Tips.pdf – Alternative Formats Article Four: Tips for Working with DIverse Families After reading, use the following as a guide for your summary: How have American families changed over the last few decades? In what ways can families be diverse? Choose two of the family types discussed in the article, and describe how you, as an educator, can support these students and their families. Reflect on yourself as an educator…. what do you predict will be easy when it comes to working with diverse families, and what will seem more difficult to navigate? Grading Criteria Summary must be reflective of course material and show comprehension of the article content. 30 points – Three paragraphs are included, each paragraph meeting the length requirements 20 points – First paragraph discusses diversity of families: minimum of 7 sentences 30 points – Second paragraph summarizes 2 family “types” discussed in the article: each family type should have a minimum of 5 sentences each 20 points – Third paragraph gives specific strategies/ideas when working with families: minimum of 7 sentences Family-Friendly_Teachers_Tips.pdf Family-Friendly_Teachers_Tips.pdf – Alternative Formats Article Four: Tips for Working with DIverse Families

Personal budget

Prior to beginning work on this assignment, read Chapter 4: Financial Forecasting in the textbook, and review the Personal Budget Resource. Watch the Week 1 Journal video with Brenda Forde, CPA, MBA.

For this journal, complete two months of the Personal Budget Template. Then, evaluate your personal budget information and numbers from your completed Personal Budget Template. You may complete the template using your own personal financial data, which will make the activity more meaningful, or hypothetical numbers. Discuss the most important concepts and facts you learned. For example, were there any surprises in the amount or category of your expenses? Your reflection should be a minimum of 350 words

Code of Ethics

For the research paper, your group will:Create a Code of Ethics for your fictitious business or organization. Create a social responsibility strategy for your business/organization.Design standards for justice/fairness principles for your fictitious organization (these principles are usually included in a Human Resources policy). Group 4: You are the Board of Directors and Executive Director of a non-profit organization which provides counseling services to children and families. The non-profit employs 175 staff ranging from professionals (psychologists and social workers) to part-time office staff at 3 satellite offices throughout the state.

× How can I help you?