title: What's the best algorithm to check the similarity percentage among the submitted assignments?
body: <p>I am planning to build a project for final year that is similar to similarity checker.
  In the project, I am planning to check the similarity percentage among the submitted assignments i.e offline.</p>
  
  <p>For example:</p>
  
  <ol>
  <li><p>When the first student submits an assignment, it is not checked with any other assignments.</p></li>
  <li><p>When the second student submits an assignment, it is checked with the first assignment.</p></li>
  <li><p>When the third student submits an assignment, it is checked with first and second submitted assignments.</p></li>
  <li><p>Similarly, if there are 35 students thEn the 36th submitted assignment is checked with the rest of the 35 submitted assignments.</p></li>
  </ol>
  
  <p>Now, here comes the question that how to compare two assignments.
  In this case comparison is similarity between the texts in the documents.
  I want the result similar to this:</p>
  
  <p><a href="https://i.stack.imgur.com/jmQ9W.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jmQ9W.jpg" alt="Similarity checking between the documents"></a></p>
  
  <p>I just want to show the percentage of similar sentences and what they are?</p>
  
  <p>What I did:</p>
  
  <p>I studied different algorithms like td-idf, cosine similarity algorithm but I am unable to correctly interpolate the results of the algorithm.</p>
  
  <p>So, I want to know which algorithm is the best in this situation and I want to know how this is done. Are there any references to any sites, blogs that would help me?</p>