| Input: The single-valued neutrosophic decision matrix , the alternatives is , and the distinguish coefficient is . |
| Output: The score function and the accuracy function values of each alternative. |
| function the score function and the accuracy function values of each alternative for each do function the general decision matrix |
| calculate the aggregated decision matrix in Equation (11) end for |
| return |
| end function |
| function the weight of criteria |
| for each criterion do |
| calculate the arithmetic mean value of the alternative under criteria |
| end for |
| calculate the in Equation (12) |
| return |
| for each alternative under criterion , determine the grey relation coefficient do |
| Calculate the in Equation (13), calculate the grey correlation degree in Equation (14), calculate the weight of criteria in Equation (15) |
| end for |
| return |
| end function |
| for each alternative do |
| calculated the aggregated overall values of each alternative in Equation (16), calculated the score function and accuracy function values of each alternative and in Equation (17) |
| end for |
| return and |
| end function |