Multiple heaps

Assignment Help C/C++ Programming
Reference no: EM13100330

Create an application that has two heaps. Place a linked list into each heap. Select one hundred random numbers. Place each of the random numbers into each heap - in the order selected.

Linked list number 1, in heap 1, should sort the numbers in ascending order. Linked list number 2, in heap 2, should sort the numbers in descending order. The sort algorithms used should sort the data elements in less than O(n2).

Once each of the linked lists is sorted, the numbers should be printed.

Your program must use two linked lists. Each linked list must be in an independent heap - not the default heap.

Your program can use multiple threads, if you desire.

Turn in a printed copy of your program source as well as including the source on floppy disk, CD, or thumb drive (no executable files) or email the program source, by pasting it into an email (no attachments), to the instructor. Insure your name is on all materials.

Programs will be graded based upon program correctness, good programming techniques, style, and user interface.

Late programs will be accepted only if circumstances dictate (death of an immediate family member, verifiable illness, military tour duty, etc).

This programming assignment is an individual assignment. Please don't violate McKendree University's plagiarism or cheating policies.

Reference no: EM13100330

Questions Cloud

Description of poisson probability : An insurance company has determined that each week an average of nine claims are filed in their Atlanta branch. What is the probability that during the next week
How many females would have hemophilia : What is the probability of males having hemophilia out of the entire population?
Probability of salaries : The salaries of the employees of a corporation are normally distributed with a mean of $25,000 and a standard deviation of $5,000.
Role of community policing in military : What community policing means to you and what role does it play in military? How has the presence changed relationship.
Multiple heaps : Create an application that has two heaps. Place a linked list into each heap. Select one hundred random numbers. Place each of the random numbers into each heap - CSI 345 - Spring 2014 S2
Describe a project selection process : Describe a project selection process from either the literature or an organization of your choice. If it's from the literature, please submit the article; if it's an organization.
Writing scores forming a normal distribution : The average score for the sample is M = 76. For the general population of college students, writing scores form a normal distribution with a mean of µ = 70.
Describe a project management methodology : Describe a project management methodology from either the literature or an organization of your choice. If it's from the literature, please submit the article.
What will be the frequency of r after one generation : A farmer wishes to use genetically-modified crop in order to reduce cost on pesticides. The resistance gene, R, that provides protection for the crops is dominant and only 30 percent of the crops survive if they lack this gene.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Skills required by personnel working in information security

What skills are required by personnel working in information security? Write down some job titles in the field and come up with some required qualifications and some desirable qualifications.

  Prepare a linux shell

Prepare a linux shell (in other words, write a C/C++ program) that will recursively prompt for input from the user. The shell should prompt as

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  C++ programming uml diagrams

The goal of this lab is to better familiarize you with polymorphism and the factory design pattern, two key components in Assignment

  Implementation of data member counter of type int

Write the implementation (.cpp file) of Counter class. Here is the full specification of the class: A data member counter of type int.

  Show the deatils of an emplyoee - c programming

Show the deatils of an emplyoee in a neat format.

  Write application to calculate price of carpeting for room

The Westfield Carpet Company has asked you to write an application that calculates the price of carpeting for rectangular rooms.

  Write a program that reads numbers

Write a C++ program that reads N positive numbers from the keyboard, calculates and shows the smallest number of all numbers

  Write a menu-driven program that maintains an address book

Write a menu-driven program that maintains an address book using a linked list. The address book must supports the following operations

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Write program using c language to find page fault

Write program using c language to find page fault for individual processes, group of processes and system as whole using following system call int sys_pgfltstats(pid_t pid,int flag,pf_info_struct *info).

  Create if-then statement with single alternative decision

Create the If-Then statement (or a flowchart with a single alternative decision structure) which assigns 20 to  variable y and allots 40 to variable z if variable x is greater that 100.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd