Hi There Everyone!(adsbygoogle = window.adsbygoogle || []).push({});

I was wondering if any of you could guide me in the right direction concerning the following problem (an algorithm would be much appreciated):

I am writing a program for a Computer Science Project.

The Program works as follows:

1. It generates a random number with x items.

2. The user then enters a set of numbers.

3. The program then outputs how many of these numbers are in the right position

4. This proccess continues until the user has entered the initial the random number.

I now want to add a feature where the user enters a number of sets, each containg x items, as well as how many numbers are in the right position.

My program should then work out which numbers are in the right positions.

I want to know if there is some algorithm or mathematical logical process by which I could program this.

Any help on this matter would be much appreciated!

**Physics Forums - The Fusion of Science and Community**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Checking for similar items in sets

Loading...

Similar Threads for Checking similar items | Date |
---|---|

I Checking for Biased/Consistency | May 29, 2017 |

Group definition (checks) | Feb 8, 2015 |

Can someone please check my logic proof? | Oct 11, 2014 |

Proof Check: Closure of Union Contains Union of Closures | Oct 5, 2013 |

Q: Load curves: similarity check-up | Mar 30, 2009 |

**Physics Forums - The Fusion of Science and Community**