Skip to content

Br34th7aking/rosalind-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

rosalind-python

My solutions to the problems in Rosalind's Python Village

Python Village

This track is mainly to get you comfortable using the rosalind platform. For each problem you code the solution, and then download the dataset from the website. Run your program with this dataset as the input, and upload the output on the website.

Algorithmic Heights

This track has classic algorithm problems.

  • [rosalind_in.txt] This file is where I put the sample inputs.
  • [rosalind_out.txt] The program writes the output to this file.
  • Majority Element The question asks which element occurs more than half the number of times in the array. After sorting, check the count of middle element. If it is more than half, that is the answer, else -1.
  • Degree Array Just make a linear scan through the input and increase the count of every vertex you find.
  • Insertion Sort Modified the insertion sort function to return the count of number of swaps, instead of a sorted array.
  • Merge Arrays Just scan through both the arrays and add the element that is small er to the final array. The merge function from this problem can be used to solve the merge sort question.
  • Merge Sort Added the merge_sort function to the code from Merge array problem.
  • Double Degree array Simply make a dictionary containing nodes as keys, and add the neighbors to it's value (a list).

Bioinformatics Textbook Track

Bioinformatics Armory

Bioinformatics Stronghold

About

My solutions to the problems in Rosalind's Python Village

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages