algoritham and maths

   

Fall 2020 CIS 606 Midterm

You have to TYPE your answers and use a tool to draw figures. Save them in a file called mid.pdf. The cover page should contain your picture, name and your grail’s login id. Use the following command on grail to submit it BEFORE noon on Oct 20 (EST):

turnin -c cis606s -p mid mid.pdf

WARNING: Finding the solutions from Internet or discussing with any other person will be considered as CHEATING.

1. Write True or False at the beginning of your answer and give an explanation for each of the following statements.

(a) ( 9 points) (True or False)

5n+5 = O(5n)

(b) ( 9 points) (True or False)

In the algorithm SELECT which uses the median of medians, the input elements are divided into groups of 5. The algorithm can still work in linear time if they are divided into groups of 9.

(c) ( 9 points) (True or False)

Finding a closest pair of points in 2 dimensions would be harder (in terms of time complexity) if the distance between 2 points (x1, y1) and (x2, y2) were defined as

|x1 − x2| + |y1 − y2|.

   

Solve the following recurrence by making a change of variables.

T (n) = 8T (√n) + 1

3. ( 15 points)

Using Figure 6.3 as a model, illustrate the operation of BUILD-MAX-HEAP on the array A = h3, 2, 15, 9, 70, 18, 5, 33, 8i.

4. ( 10 points)

Trace in detail how the OS Select(T.root, 18) operates on the following RB tree T .

Given two arrays A[1..n] and B[1..n], the elements in the array A are sorted in de- scending order and the elements in the array B are sorted in ascending order. Consider the problem of finding the median of all 2n elements in A and B.

(a) Design an algorithm with merging. What is the running time of your algorithm?

(b) Design an efficient recursive algorithm based on the prune-and-search approach.

You may use a figure to illustrate your algorithm. Give the recurrence relation for the time complexity of your algorithm. Solve your recurrence using the master theorem.

  

Input: array P [1..n] and array Q[1..n], where n is power of 2.

Output: array R[1..(2n − 1)]

Two binary operators   and ⊕ will be used for calculations. Both are associative. The operation   is distributive over ⊕ and has higher precedence than ⊕.

The operator   will be used to calculate each pair of operands P [i], 1 ≤ i ≤ n, and Q[j], 1 ≤ j ≤ n (i.e. one operand in P and the other in Q). The result of P [i]   Q[j] will be accumulated into R[i + j − 1] by using the ⊕ operation.

The following is a loop-based algorithm:

for i = 1 to n

for j = 1 to n

R[i + j − 1] = R[i + j − 1] ⊕ P [i]   Q[j]

endfor endfor

For example, given P [1..4] and Q[1..4], the output result R[1..7] will be:

R[1] = P [1]   Q[1]

R[2] = P [1]   Q[2] ⊕ P [2]   Q[1]

R[3] = P [1]   Q[3] ⊕ P [2]   Q[2] ⊕ P [3]   Q[1]

R[4] = P [1]   Q[4] ⊕ P [2]   Q[3] ⊕ P [3]   Q[2] ⊕ P [4]   Q[1] R[5] = P [2]   Q[4] ⊕ P [3]   Q[3] ⊕ P [4]   Q[2] R[6] = P [3]   Q[4] ⊕ P [4]   Q[3] R[7] = ⊕ P [4]   Q[4]

Use the Divide and Conquer approach to develop an efficient algorithm which uses fewer   operations. You may draw a figure to illustrate your idea. Give the recurrence relation for the time complexity of your algorithm. Solve your recurrence using the master theorem.

Hint: Split the array P [1..n] into two subarrays A[1..n ] and B[1..n ]. Also split the

2 2

array Q[1..n] into two subarrays C[1..n ] and D[1..n ].

2 2

Software engineering

  

Paper topic proposal should not exceed 2 pages and should include the following:

1- Paper topic

2- Brief description

Describe in 1-2 paragraphs the topic of the paper and the approach you will take to address the topic. If you have developed an outline, you can include that in this section.

3- Preliminary list of references.

Include 3-4 references, in the APA format, that you plan to use for the paper.  

wk3dis_531

 Why are the original/raw data not readily usable by analytics tasks? What are the main data preprocessing steps? List and explain their importance in analytics. 

Discussion 2

How do you feel blockchain will change the global economy or will it?  Explain your answer.

Please make your initial post and two response posts substantive. A substantive post will do at least two of the following:

  • Ask an interesting, thoughtful question pertaining to the topic
  • Answer a question (in detail) posted by another student or the instructor
  • Provide extensive additional information on the topic
  • Explain, define, or analyze the topic in detail
  • Share an applicable personal experience
  • Provide an outside source (for example, an article from the UC Library) that applies to the topic, along with additional information about the topic or the source (please cite properly in APA)
  • Make an argument concerning the topic.

Reference articles:

Textbook, Chapter 1 & 11: Bashir, I. (2017). Mastering Blockchain. Birmingham, UK: Packt Publishing. 

Norberg, H. (2019). Unblocking the Bottlenecks and Making the Global Supply Chain Transparent: How Blockchain Technology Can Update Global Trade. The School of Public Policy Publications, (9), 1.

Kshetri, N. (2017). Will blockchain emerge as a tool to break the poverty chain in the Global South? Third World Quarterly, 38(8), 1710–1732. https://doi.org/10.1080/01436597.2017.1298438

Varghese, J. J., Sharma, D., & Singh, N. K. (2019). Analysing the Impact of Blockchain Technology in India’s Digital Economy. Global Journal of Enterprise Information System, 10(3), 94–99. https://doi.org/10.18311/gjeis/2019

INSTRUCTIONS.

1. No Plagiarism at any cost .

2. The submission date is Thursday (01/14/21).

3. Atleast 3 references in APA format

4. Min of 250 words (2-3 paragraphs)

finanance and blockchain

 Prepare a one page APA style paper about blockchain applications. In the paper be sure to (1) define the parameters of blockchain applications, (2) address why they are needed, (3) discuss the different types and (4) discuss how the current markets could benefit from the use of such applications. Use at least 2 sources in this paper (and please be sure to cite them in the paper). Follow the writing guidelines for this course. 

Home work

 Write a 3-page Journal Article Review of a scholarly peer-reviewed journal article that describes Negotiation Strategy and how it should be used effectively in negotiations. 

DEFINITION: a brief definition of Negotiation Strategy followed by the APA reference for the term; this
does not count in the word requirement.

SUMMARY: Summarize the article in your own words- this should be in the 150-200-word
range. Be sure to note the article’s author, note their credentials and why we should put any
weight behind his/her opinions, research or findings regarding the key term. Name the title of
the article and the author(s).

ANALYSIS: Using 300-350 words, write a brief analysis, in your own words of how the article
relates to the selected Key Term. Provide your personal critique of the article and the author(s).
See the tips posted in Moodle as a guide. A Journal Article Review analysis is not rehashing
what was already stated in the article, but the opportunity for you to add value by sharing your
experiences, thoughts and opinions. This is the most important part of the assignment.

REFERENCES: All references must be listed at the bottom of the submission–in APA format. 

Be sure to use the headers in your submission to ensure that all aspects of the assignment are completed as requir

 

HUGE HINT for Journal Article Review Analysis Sections. READ THIS NOW! 

You should incorporate these topics into your analysis section. If you do, then the chances of earning a high grade are GREATLY increased, in fact, this is the FIRST thing I look for when grading your papers. 

1. Explain why you selected this particular article among all the articles you could have chosen on your selected term.

2. Explain why you agree or disagree with the author’s key positions in the article. 

3. Explain how the article was easy or difficult to understand and why? 

4. What did the author do well in your opinion? Explain.

5. Describe what you believe the author could have done better in your opinion?

6. What else should the author have included in the article and would the article benefit from a different perspective (such as from a different nationality or different industry or experience perspective). Explain. 

7. What other sources or methods could the author have used to improve the research in the article?  (Hint: look up the types of qualitative and types of quantitative research methods). 

8. What information / in-depth study / or further research should the author focus on as a follow up to this article and why? 

9. Explain what audience would gain the most benefit from your selected article and how they could apply it in their professional lives. 

10. What did you personally gain from this article and how has it shaped your thinking on the topic?  

11. What are the conflicting or alternative viewpoints of the author’s position? Or  What additional research backs up and confirms or adds to the author’s position?  (Hint: this will require you to find another peer-reviewed article that challenges, confirms, or adds to, or provides a different perspective to your chosen article.)

Next,  I look for the summary, writing quality, and formatting. 

I am typically very lenient on the writing because I am more focused on your content, but I will also point out how the paper could be better written. I only heavily penalize poorly written papers when there are excessive writing problems.

Why do I grade papers in this class this way?  

One of the key differences in a Bachelor’s vs Master’s level is critical thinking. Bachelor’s level basically challenges direct knowledge and recall of information. The Master’s level is more about analysis and critical thinking and defending your position in a scholarly way. The analysis section of these papers is your opportunity to exercise critical thinking (that’s why I call this portion of your papers critiques). 

Recalling or simply explaining the journal articles is a bachelor’s level task. When I see this in your papers I give the paper an automatic C. If the paper is poorly written it also gets an F. 

To get a B or an A – you must provide a critique of the paper and the author and how well the author did and what you think of the article. The questions listed above do this properly.  

I do not want to read your version of the journal article. I may as well read the journal article for myself.  Just briefly describe the article in your summary section  – but the analysis section is where you put in your personal critique – in other words, address the questions listed above and even add in additional thoughts based on your own creativity. 

I hope this helps! 

Preview the document

Grist

Grist – SciFi Movies

Printable document for Grist – SciFi Movies: 
Grist – SciFi Movies.docx

Actions

1) Create a new database by Importing the file below: 

Please download the excel import data SciFi Movie – Import.xlsxPreview the document to use as an import for this assignment

Import Document into Grist.

Be sure the following column options are as stated below:

  • Movie Number: Column Type – Text
  • Movie Name:  Column Type – Text
  • Year Made:  Column Type – Numeric   /   Alignment – Centered
  • Studio:  Column Type – Text
  • Rating:  Column Type – Integer   /   Alignment – Centered
  • Awards:  Column Type – Choice:  ADM, RBB, GGA, NOA, GTA
  • Length – Minutes:  Column Type – Numeric   /    Alignment – Centered
  • Director Number:  Column Type – Text

2) Rename the Table – Movies

3) Create another table called Directors by adding an empty table.

Add the following columns:

Director Number – Column Type – Reference:  Movies Table and Director Number

Director Name – Column Type – Text

# of Movies Directed – Column Type – Numeric    /    Alignment – Centered

Fill in the fields and data from the table below:

Director Number

Director Name

# of Movies Directed

CRN

Christopher Nolan

10

GEL

George Lucas

18

AYW

Andy Wachowski

11

JSC

James Cameron

22

RTZ

Robert Zemeckis

25

TYG

Terry Gilliam

19

JJA

J.J. Abrams

12

SNS

Steven Spielberg

52

AOC

Alfonso Cuaron

15

AWN

Andrew Niccol

7

IOH

Ishiro Honda

59

PLV

Paul Verhoeven

28

4)  Create a new page for an overview.  Add a widget to new page and select a table for the Movies table with summary data for the Director Number.  Remove the Count and Rating Columns.   

5) Rename the new page in the navigational bar Movie Overview.

6) Add Widget to page and select the card widget for the Movies table with summary data for the Movie Number.  Change the Theme to Blocks.  Customize the card by hiding the count field and moving Length-Minutes to the second row.  You will have 3 fields going across on the 2nd row.

7) Add widget to page and select the chart widget for the Movies table with a summary of data for the Awards.  Change the chart to a pie chart.  Hide all series except for Awards and count.  Customize layout appropriately. 

*When complete, your Movie Overview page should have a Movie summary of the Movies table, a Movies Card widget and a Movies Chart Widget.

8) In the Movies table create a new field name called Movie Rating. 
Column Type – Choice: R, PG and PG-13

Update the rest of the table to meet the data below.

Movie Names

Movie Rating

Aliens 

R

Back to the Future

PG

E.T.

PG

Gravity

PG-13

Godzilla

PG-13

Inception

PG-13

Gattaca

PG-13

Starship Troopers

R

Star Trek 

PG-13

Star Wars

PG

Terminator 

R

Twelve Monkeys 

R

The Matrix

R

9) Add widget to Movies page and select the chart widget for the Movies table with a summary of data for the Movie Rating.  Change the chart to a pie chart.  Hide all series except for Movie Rating and count.  Customize layout appropriately.