DNA String compression example
Definition:
A DNA string d is string of consisting of characters from the set {A, T, C, G} where |d| > 0. |d| is the length of d.
Assume the following binary encoding: A = 00, T= 01, C = 10, G = 11
We can fit 4 characters from a DNA string into an unsigned char.If (|d| % 4 != 0), then pad with trailing zeros. Suppose d is ATTCGG.
Compress ATTCGG using bitwise operators in C++. First print |d|.
DNA String compression example
Definition:
A DNA string d is string of consisting of characters from the set {A, T, C, G} where |d| > 0. |d| is the length of d.
Assume the following binary encoding:
A = 00, T= 01, C = 10, G = 11
d = ATTCGG
Initialize an 8-bit unsigned char to store compressed bits.
DNA String compression example
Definition:
A DNA string d is string of consisting of characters from the set {A, T, C, G} where |d| > 0. |d| is the length of d.
Assume the following binary encoding:
A = 00, T= 01, C = 10, G = 11
d = ATTCGG
Read the first character of d and use bitwise operators to place its binary encoding in the proper location.
DNA String compression example
Definition: A DNA string d is string of consisting of characters from the set {A, T, C, G} where |d| > 0. |d| is the length of d.
Assume the following binary encoding:
A = 00, T= 01, C = 10, G = 11
d = ATTCGG
Read the next character of d and use bitwise operators to place its binary encoding in the proper location.
DNA String compression example
Definition:
A DNA string d is string of consisting of characters from the set {A, T, C, G} where |d| > 0 |d| is the length of d.
Assume the following binary encoding:
A = 00, T= 01, C = 10, G = 11
d = ATTCGG
Read the next character of d and use bitwise operators to place its binary encoding in the proper location.
DNA String compression example
Definition:
A DNA string d is string of consisting of characters from the set {A, T, C, G} where |d| > 0. |d| is the length of d.
Assme the following binary encoding:
A = 00, T= 01, C = 10, G = 11
d = ATTCGG
Read the next character of d and use bitwise operators to place its binary encoding in the proper location.
DNA String compression example
Definition: A DNA string d is string of consisting of characters from the set {A, T, C, G} where |d| > 0.
|d| is the length of d.
Assume the following binary encoding:
A = 00, T= 01, C = 10, G = 11
d = ATTCGG
Print the base-10 integer value of the 8-bit unsigned char.
DNA String compression example
Definition: A DNA string d is string of consisting of characters from the set {A, T, C, G} where |d| > 0. |d| is the length of d.
Assume the following binary encoding:
A = 00, T= 01, C = 10, G = 11
d = ATTCGG
Reinitialize the 8-bit unsigned char.
DNA String compression example
Definition:
A DNA string d is string of consisting of characters from the set {A, T, C, G} where |d| > 0 |d| is the length of d.
Assume the following binary encoding:
A = 00, T= 01, C = 10, G = 11
d = ATTCGG
Read the next character of d and use bitwise operators to place its binary encoding in the proper location.
DNA String compression example
Definition:
A DNA string d is string of consisting of characters from the set {A, T, C, G} where |d| > 0. |d| is the length of d.
Assume the following binary encoding:
A = 00, T= 01, C = 10, G = 11
d = ATTCGG
Read the next character of d and use bitwise operators to place its binary encoding in the proper location.
DNA String compression example
Definition: A DNA string d is string of consisting of characters from the set {A, T, C, G} where |d| > 0. |d| is the length of d.
Assume the following binary encoding:
A = 00, T= 01, C = 10, G = 11
d = ATTCGG
Once we reach the end of d, add trailing zeros to fill the 8-bit
unsigned char.
DNA String compression example
Definition:A DNA string d is string of consisting of characters from the set {A, T, C, G} where |d| > 0. |d| is the length of d.
Assume the following binary encoding:
A = 00, T= 01, C = 10, G = 11
d = ATTCGG
Print the base-10 integer value of the 8-bit unsigned char
CS 340 Milestone One Guidelines and Rubric Overview: For this assignment, you will implement the fundamental operations of create, read, update,
Retail Transaction Programming Project Project Requirements: Develop a program to emulate a purchase transaction at a retail store. This
7COM1028 Secure Systems Programming Referral Coursework: Secure
Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip
CS 340 Final Project Guidelines and Rubric Overview The final project will encompass developing a web service using a software stack and impleme