Implementing the code to sum numbers in serial and then in parallel using c and OpenMP

include

#include

#include

#include

#include

static const long Num_To_Add = 1000000000;

static const double Scale = 10.0 / RAND_MAX;

long add_serial(const char *numbers) {

    long sum = 0;

    for (long i = 0; i < Num_To_Add; i++) {

        sum += numbers[i];

    }

    return sum;

}

long add_parallel(const char *numbers) {

    long sum = 0;

    return sum;

}

int main() {

    char *numbers = malloc(sizeof(long) * Num_To_Add);

    long chunk_size = Num_To_Add / omp_get_max_threads();

#pragma omp parallel num_threads(omp_get_max_threads())

    {

        int p = omp_get_thread_num();

        unsigned int seed = (unsigned int) time(NULL) + (unsigned int) p;

        long chunk_start = p * chunk_size;

        long chunk_end = chunk_start + chunk_size;

        for (long i = chunk_start; i < chunk_end; i++) {

            numbers[i] = (char) (rand_r(&seed) * Scale);

        }

    }

    struct timeval start, end;

    printf(“Timing sequential…n”);

    gettimeofday(&start, NULL);

    long sum_s = add_serial(numbers);

    gettimeofday(&end, NULL);

    printf(“Took %f secondsnn”, end.tv_sec – start.tv_sec + (double) (end.tv_usec – start.tv_usec) / 1000000);

    printf(“Timing parallel…n”);

    gettimeofday(&start, NULL);

    long sum_p = add_parallel(numbers);

    gettimeofday(&end, NULL);

    printf(“Took %f secondsnn”, end.tv_sec – start.tv_sec + (double) (end.tv_usec – start.tv_usec) / 1000000);

    printf(“Sum serial: %ldnSum parallel: %ld”, sum_s, sum_p);

    free(numbers);

    return 0;

}

Business Intelligence, Analytics Assignment

 Chapter 1 –discussion question #1 & exercise 15 (limit to one page of analysis for question 15)

Discussion question #1:

 1. Survey the literature from the past six months to find one application each for DSS, BI, and analytics. Summarize the applications on one page, and submit it with the exact sources. 

Exercise 15:

 Find information about IBM Watson’s activities in the healthcare field. Write a report 

When submitting work, be sure to include an APA cover page and include at least two APA formatted references (and APA in-text citations) to support the work this week.
All work must be original (not copied from any source). 

4 pages APA format paper ($7 only + no plagiarism)

Conduct research on the distinctions between Internet routers and personal access routers. Write a 4page paper that explains the differences between personal access routers and Internet routers.

You must use a minimum of 3 sources (one can be your textbook) and you must cite at least two of your sources in the body of your document.

summary of civil rights case

 Go  to the website: https://epic.org/privacy/litigation/ which focuses on civil rights issues and privacy. Pick a case.
Using WORD, in your OWN WORDS, write an ORIGINAL brief summary of 300 words or more  :

  • Summarize the case
  • Give your opinion of the decision.
  • Describe how the case deals with the material in this chapter

Research paper and dicsussion

Task 1:

 This week, you have read about entrepreneurship in a global economy. For your written assignment this week, complete a case study of the organization you work for (use a hypothetical or “other” organization if more applicable) that will address the following prompts:

  • Describe the organization’s environment, and evaluate its preparedness to go global, if not already, and it’s strategy for staying global if it is.
  • Research other company’s strategy for going global and explain if this will or will not work for your company. 
  • Make a recommendation for a global strategy in the organization, including a justification for your recommendations.

Submit your  research paper as a single document. Your paper should meet the following requirements:

  • Be approximately four to six pages in length, not including the required cover page and reference page.
  • Follow APA 7 guidelines. Your paper should include an introduction, a body with fully developed content, and a conclusion.
  • Support your answers with the readings from the course and at least two scholarly journal articles to support your positions, claims, and observations, in addition to your textbook. The UC Library is a great place to find resources.
  • Be clearly and well-written, concise, and logical, using excellent grammar and style techniques. You are being graded in part on the quality of your writing.

Task 2: Discussion -> 300 – 350 words.

Networks have changed drastically over the last 30 years.  With the first introduction of the 56k modem, which was about 3 typewriter pages per second, to speeds well over 1Gbps these days, the ability to use networks globally, has changed the way we do business.  Using research, determine where networks will go in the next 5-10 years and how that might impact the global economy. 

3-4 paragraphs

 For this assignment, you are asked to locate any company privacy policy. Some of the more popular ones might include GOOGLE, APPLE, or MICROSOFT, but you may elect to review another agency. In 3- 4 paragraphs, explain what you find to be the most interesting information contained in that privacy policy. At the end of your report, please include a LINK to the policy you have reviewed. 

Research Methods Jan 23

Written Assignments Content

  1. Research Methods & Designs: Write a 4-page (2 pages of content) description of qualitative, quantitative, and mixed methods research methodologies including:  
    • the characteristics of each research method,
    • when the use of each research method is most appropriate,
    • and similarities and differences in the research methods.
    • Describe the research method and research design that best fits your major area of study including:  
    • the reasons for selecting the research method,
    • the reasons for selecting the research design,
    • and why it is the best fit for research conducted in your major area of study. 

Intro to Networking: Assignment 1

Submit these answers as a single Word document. APA style with references. 100% original work. no plagiarism.

Answer the following questions:

1. Map the layers of the TCP/IP model to the OSI model

2. Each layer of OSI has a body/group that is responsible for the standards, please name them

3. Describe the progression through the OSI model of the following:

  – A web browser request and connection to www.cnn.com

  – An email being sent from Outlook on a Windows machine from your APUS email account to [email protected]