TheAlgorithms / Java

All Algorithms implemented in Java
MIT License
60.18k stars 19.46k forks source link

Add Nussinov Algorithm for RNA Secondary Structure Prediction #6071

Open alexcerezo opened 3 weeks ago

alexcerezo commented 3 weeks ago

Description: This pull request introduces the implementation of the Nussinov algorithm, which predicts the secondary structure of RNA by maximizing base-pair compatibility. The algorithm uses dynamic programming to compute an optimal structure based on RNA sequence input.

Changes:

Files Added:

  1. Nussinov.java: Contains the main algorithm.
  2. TestRNAFolding.java: Includes unit tests to verify functionality and accuracy.

Additional Notes:

Testing: All tests included in TestRNAFolding have been successfully run, covering both base-pair compatibility and basic structure prediction. A library it needed, link on the Nussinov.java file.

This addition should be a valuable resource for bioinformatics and computational biology algorithms in the repository.

alexcerezo commented 2 weeks ago

It would be best if you stopped posting comments without sense.