Order For This Paper, Essay Help or Similar Assignment Writing Service

Follow and fill the order form to buy essay examples, book instant tutoring or hire scholarly research writers

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

Homework Samples, Study Bay Notes & Research Topics: »

Why Choose Our Custom Writing Services

We’re all about delivering top-quality work that students can rely on—because your success is our priority.

Top Ace Tutors

Our team? A group of rockstar graduate writers—Masters, MSN, PhD, and DNP pros—who know their stuff inside and out. They’ve got years of academic writing experience and specialize in all kinds of subjects. Whether it’s homework help or a tricky essay, they dig deep to craft well-researched, spot-on content that hits the highest academic standards. Plus, they’re champs at switching up styles to match whatever vibe you need—perfect for college students with unique demands.

0% Similarity Index

We promise you 100% original, human-written content—no plagiarism, no AI-generated essays, just pure creativity. Our skilled writers research every piece from scratch, and we double-check everything with top-notch plagiarism tools before it lands in your hands. It’s all about giving you peace of mind, knowing your work is one-of-a-kind and authentically yours.

Affordable Pricing

High-quality custom writing services shouldn’t cost a fortune, and with us, they don’t! We keep our prices fair and competitive—way better than other paper writing services—while still delivering top-notch essays and assignments. It’s like getting VIP treatment without the VIP price. Real value, no stress, perfect for students watching their budget.

How it works

When you decide to place an order with HomeworkAceTutors, 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 or recommend to your class mate a favorite essay writer.

Hire Professionals For Each Module's Coursework Assignments!

Fill the order form and find the best writers and tutors for thatg desired grade.

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