Order for this Paper or Similar Assignment Writing Help

Click to fill the order details form in a few minute.

Posted: February 21st, 2023

Homework #2

Homework #2
Due February 28th, 11:59pm
Each homework submission must include:
• An archive (.zip or .gz) file of the source code containing:
o The makefile used to compile the code on Monsoon (5pts)
o All .cpp and .h files (5pts)
• A full write-up (.pdf of .doc) file containing answers to homework’s questions (5pts), including
the exact command line needed to execute every subproblem of the homework
The source code must follow the following guidelines:
• No external libraries that implement data structures discussed in class are allowed, unless
specifically stated as part of the problem definition. Standard input/output and utilities libraries
(e.g. math.h) are ok.
• All external data sources (e.g. input data) must be passed in as a command line argument (no
hardcoded paths within the source code (5pts).
• Solutions to sub-problems must be executable separately from each other. For example, via a
special flag passed as command line argument (5pts)
For this homework, you will use the query dataset located on Monsoon:
/common/contrib/classroom/inf503/human_reads.fa.
For this homework, you will also need to use the subject dataset (human genome assembly that you
used in HW#1). Recall that it is located at: /common/contrib/classroom/inf503/genomes/human.txt
• This file contains multiple scaffolds
that comprise the human genome
• The genome is in FASTA format (see
insert)
o The headers are unique and
always begin with the “>”
character. These can be
discarded for this homework.
Each line of genome file is exactly 80 characters long (plus carriage return character)
o The genomic sequences consist of the following alphabet {A, C, G, T, N}
Problem #1 (of 1)
Create a class called Queries_AR. The purpose of the class will be to contain a dataset of genomic
sequences (queries) and all of the functions needed to operate on this set. Use the 2D array datastructure to store the genomic sequences of the dataset. For this assignment, you can completely
disregard the headers of the sequence fragments. At minimum, the class must contain (15pts):
• A default constructor (that zeroes everything out)
• At least one custom constructor (e.g. one taking a file path or ifstream as input)
• A function to read the query dataset file
• A search function designed to find a sequence fragment within class’s data
• A function to sort the fragments of the Queries_AR object
• A destructor
A. (30 pts) Read in the entire query dataset and store it in an instance of the Queries_AR class. Read in
the entire subject dataset into a single, concatenated character array (same way you did it in HW#1).
Implement a search function which would search for 32 character fragments of the subject sequence
within the Queries_AR object. The search function should return the location (index) of the match OR
a negative value if a ‘hit’ was not found. Iterate through 32-character long fragments of the subject
dataset, searching for each one in the query dataset.
• How long did it take you to search for the first 10K, 100K, and 1M 32-character long fragments
of the subject dataset within the query dataset?
• How long would it take to search for every possible 32-character long fragment of the subject
dataset within the query dataset? Please note that depending on the efficiency of your
algorithm, this step may take a long time. If the total time is greater than 24 CPU hours,
provide an estimate rather than exact number.
• Print the first 10 fragments of the subject dataset that you found within the Query AR object
(if any).
B. (30 pts) Read in the entire query dataset and store it in an instance of the Queries_AR class. Sort all
character fragments in alphabetic (lexographic) order. Any sorting algorithm will do. Read in the
entire subject dataset into a single, concatenated character array (same way you did it in HW#1).
Implement a search function which would search for 32 character fragments of the subject sequence
within the Queries_AR object. The search function should return the location (index) of the match OR
a negative value if a ‘hit’ was not found. Iterate through 32-character long fragments of the subject
dataset, searching for each one in the query dataset.
• How long did it take you to search for the first 10K, 100K, and 1M 32-character long fragments
of the subject dataset within the query dataset?
• How long would it take to search for every possible 32-character long fragment of the subject
dataset within the query dataset? Please note that depending on the efficiency of your
algorithm, this step may take a long time. If the total time estimate is greater than 24 CPU
hours, provide estimate rather than exact number.
• Print the first 10 fragments that you found within the Query AR object (if any).

Check Price Discount

Study Notes & Homework Samples: »

Why Choose our Custom Writing Services

We prioritize delivering top quality work sought by students.

Top Tutors

The team is composed solely of exceptionally skilled graduate writers, each possessing specialized knowledge in specific subject areas and extensive expertise in academic writing.

Discounted Pricing

Our writing services uphold the utmost quality standards while remaining budget-friendly for students. Our pricing is not only equitable but also competitive in comparison to other writing services available.

0% similarity Index

Guaranteed Plagiarism-Free Content: We assure you that every product you receive is entirely free from plagiarism. Prior to delivery, we meticulously scan each final draft to ensure its originality and authenticity for our valued customers.

How it works

When you decide to place an order with Homework Ace Tutors, here is what happens:

Complete the Order Form

You will complete our order form, filling in all of the fields and giving us as much instructions detail as possible.

Assignment of Writer

We analyze your order and match it with a custom writer who has the unique qualifications for that subject, and he begins from scratch.

Order in Production and Delivered

You and your writer communicate directly during the process, and, once you receive the final draft, you either approve it or ask for revisions.

Giving us Feedback (and other options)

We want to know how your experience went. You can read other clients’ testimonials too. And among many options, you can choose a favorite writer.

Expert paper writers are just a few clicks away

Place an order in 3 easy steps. Takes less than 5 mins.

Calculate the price of your order

You will get a personal manager and a discount.
We'll send you the first draft for approval by at
Total price:
$0.00