15,906,301 members
Home / Discussions / Algorithms

# Algorithms

 Find cartesians for matrix elements Member 1528858613-Jul-21 19:38 Member 15288586 13-Jul-21 19:38
 Guess A Word If Number Of Character Matches Are Given Member 1525570320-Jun-21 20:54 Member 15255703 20-Jun-21 20:54
 Re: Guess A Word If Number Of Character Matches Are Given OriginalGriff20-Jun-21 21:01 OriginalGriff 20-Jun-21 21:01
 What are the in-order and post-order traversals of the following tree? priyamtheone20-May-21 5:02 priyamtheone 20-May-21 5:02
 Re: What are the in-order and post-order traversals of the following tree? harold aptroot20-May-21 7:08 harold aptroot 20-May-21 7:08
 Re: What are the in-order and post-order traversals of the following tree? priyamtheone20-May-21 9:37 priyamtheone 20-May-21 9:37
 Re: What are the in-order and post-order traversals of the following tree? harold aptroot20-May-21 9:48 harold aptroot 20-May-21 9:48
 Algorithm to rank items lower if they already appear higher in another category Member 117824613-Mar-21 19:41 Member 11782461 3-Mar-21 19:41
 I'm working on a UI which has a bunch of titles grouped under multiple categories(let's say list of movies). Let's say I have Category 1, Category 2, Category 3 etc., with each category having 20 movies under it. The problem is that some movies are repeated across categories and if they appear in the top 5 in multiple categories, then it looks bad in the UI, since it appears duplicated. The source of this categorization is out of my control and I'm just receiving this data from another service. My requirement is to look for duplicates across categories and if a movie already appeared in a higher ranked(based on order of display) category, penalise it and rank it down in the category. e.g., Movie1 appeared at Rank2 in Category1. Movie1 also appears at Rank4 in Category2. I want to move Movie1 to a much lower rank(say Rank15 or Rank20) in Category2 since it is already appearing at a higher rank in a previous category. ```Problem: -------- Category1: 1. Movie1 2. Movie2 3. Movie3 ... Category2: 1. Movie1 2. Movie4 3. Movie5 ... Category3: 1. Movie4 2. Movie6 3. Movie7 ...``` In the case above, I want to rank down Movie1 in Category2 to rank 10 or below since it already appears in Category1 at the same rank or above. Similarly, I want to rank down Movie4 in Category3 to be ranked down since it appears in a higher category at a higher rank. I was thinking of assigning weights(in descending order) to categories and then calculating the score of each movie based on the rank+weight and then use this to rank down the repeating movies. I'm not an expert in algorithms, ranking etc, but I feel that this would be a common use case and there might already be solutions to such ranking problems. Can anyone guide me here?
 Re: Algorithm to rank items lower if they already appear higher in another category Ralf Meier9-Mar-21 5:55 Ralf Meier 9-Mar-21 5:55
 Saving Hierarchical (Treeview) object Iteratively with parent and child in C# Md NasirUddin24-Feb-21 5:35 Md NasirUddin 24-Feb-21 5:35
 Re: Saving Hierarchical (Treeview) object Iteratively with parent and child in C# Gerry Schmitz24-Feb-21 6:28 Gerry Schmitz 24-Feb-21 6:28
 Design a brute force algorithm to count the number of inversions in an array, analyze the number of executions of its basic operation, and determine the efficiency class. Ilyas Idrees8-Feb-21 5:42 Ilyas Idrees 8-Feb-21 5:42
 Re: Design a brute force algorithm to count the number of inversions in an array, analyze the number of executions of its basic operation, and determine the efficiency class. 20212a24-Feb-21 7:22 20212a 24-Feb-21 7:22
 Re: Design a brute force algorithm to count the number of inversions in an array, analyze the number of executions of its basic operation, and determine the efficiency class. Patrice T25-Feb-21 2:57 Patrice T 25-Feb-21 2:57
 Looking for "card playing" algorithm David Crow4-Jan-21 9:30 David Crow 4-Jan-21 9:30
 Re: Looking for "card playing" algorithm Ralf Meier4-Jan-21 9:43 Ralf Meier 4-Jan-21 9:43
 Re: Looking for "card playing" algorithm Peter_in_27804-Jan-21 11:15 Peter_in_2780 4-Jan-21 11:15
 Re: Looking for "card playing" algorithm jsc426-Jan-21 4:33 jsc42 6-Jan-21 4:33
 Re: Looking for "card playing" algorithm Peter_in_27806-Jan-21 12:46 Peter_in_2780 6-Jan-21 12:46
 Re: Looking for "card playing" algorithm Gerry Schmitz5-Jan-21 3:27 Gerry Schmitz 5-Jan-21 3:27
 formulate an algorithm Member 1502086714-Dec-20 6:59 Member 15020867 14-Dec-20 6:59
 Re: formulate an algorithm Greg Utas14-Dec-20 7:31 Greg Utas 14-Dec-20 7:31
 Re: formulate an algorithm Gerry Schmitz14-Dec-20 11:37 Gerry Schmitz 14-Dec-20 11:37
 Re: formulate an algorithm Patrice T14-Dec-20 12:38 Patrice T 14-Dec-20 12:38
 Re: formulate an algorithm Member 1525570320-Jun-21 20:01 Member 15255703 20-Jun-21 20:01
 Last Visit: 31-Dec-99 18:00     Last Update: 27-May-24 2:04 Refresh ᐊ Prev1...78910111213141516 Next ᐅ