Click here to Skip to main content
15,913,027 members
Home / Discussions / Database
   

Database

 
QuestionQuestion about simple pattern recognition (hopefully the solution is simple too...) Pin
James Shao17-Jan-10 22:24
James Shao17-Jan-10 22:24 
Hi guys, I know strictly speaking this is not a database question, but since this has to do with massive data manipulation, and that from past experiences I know there are some really intelligent and creative people here, hopefully bouncing some ideas here could shed some light on a possible solution.   Poke tongue | ;-P

Conceptually, I need to compare the pattern of object A, B, C, D, E, F.   Each object has 5 attributes (a, b, c, d, e), the value of which can range from 0 to 9.  

Object     A     B     C     D     E     F
a     6     9     1     9     9     3
b     8     3     5     1     1     3
c     7     0     8     3     5     8
d     7     5     6     5     5     2
e     8     9     2     2     8     0

The goal is to find out which objects have the highest match of attribute values.   For example, in the above table, D & E have 3 matches, B & D have 2 matches, C & D have 1 match...etc.  

Of course a simple loop comparing each object's pattern to another would suffice if there's only 6 objects and 5 attributes like the above.   But my eventual goal is to categorize some 10000 objects with 20 attributes.   Roll eyes | :rolleyes:

For some reason I thought there must be an elegant solution to this, possibly involving some ingenious/creative data sorting using arrays.   But again I've been in programming long enough to know simple concepts sometimes require unbelievably complex programmming.

I'd greatly appreciate any suggestions or ideas.   Many thanks again.   Smile | :)
AnswerRe: Question about simple pattern recognition (hopefully the solution is simple too...) Pin
Mycroft Holmes18-Jan-10 11:10
professionalMycroft Holmes18-Jan-10 11:10 
GeneralRe: Question about simple pattern recognition (hopefully the solution is simple too...) Pin
Luc Pattyn18-Jan-10 11:47
sitebuilderLuc Pattyn18-Jan-10 11:47 
GeneralRe: Question about simple pattern recognition (hopefully the solution is simple too...) Pin
James Shao18-Jan-10 12:43
James Shao18-Jan-10 12:43 
AnswerRe: Question about simple pattern recognition (hopefully the solution is simple too...) Pin
i.j.russell18-Jan-10 11:48
i.j.russell18-Jan-10 11:48 
GeneralRe: Question about simple pattern recognition (hopefully the solution is simple too...) Pin
James Shao18-Jan-10 22:00
James Shao18-Jan-10 22:00 
GeneralRe: Question about simple pattern recognition (hopefully the solution is simple too...) Pin
i.j.russell18-Jan-10 23:38
i.j.russell18-Jan-10 23:38 
QuestionHow to Import many excel Files to sql server 2005? Pin
caiguosen17-Jan-10 3:31
caiguosen17-Jan-10 3:31 
AnswerRe: How to Import many excel Files to sql server 2005? Pin
Eddy Vluggen17-Jan-10 6:13
professionalEddy Vluggen17-Jan-10 6:13 
GeneralRe: How to Import many excel Files to sql server 2005? Pin
caiguosen20-Jan-10 23:49
caiguosen20-Jan-10 23:49 
GeneralRe: How to Import many excel Files to sql server 2005? Pin
Eddy Vluggen21-Jan-10 0:11
professionalEddy Vluggen21-Jan-10 0:11 
GeneralRe: How to Import many excel Files to sql server 2005? Pin
caiguosen21-Jan-10 0:58
caiguosen21-Jan-10 0:58 
GeneralRe: How to Import many excel Files to sql server 2005? Pin
Eddy Vluggen21-Jan-10 1:25
professionalEddy Vluggen21-Jan-10 1:25 
GeneralRe: How to Import many excel Files to sql server 2005? Pin
caiguosen23-Jan-10 21:50
caiguosen23-Jan-10 21:50 
GeneralRe: How to Import many excel Files to sql server 2005? Pin
Eddy Vluggen24-Jan-10 1:47
professionalEddy Vluggen24-Jan-10 1:47 
GeneralRe: How to Import many excel Files to sql server 2005? Pin
caiguosen24-Jan-10 2:05
caiguosen24-Jan-10 2:05 
GeneralRe: How to Import many excel Files to sql server 2005? Pin
Eddy Vluggen24-Jan-10 4:54
professionalEddy Vluggen24-Jan-10 4:54 
GeneralRe: How to Import many excel Files to sql server 2005? Pin
caiguosen24-Jan-10 16:23
caiguosen24-Jan-10 16:23 
Questionfixing table for looping through checkboxlist. Pin
macupryk16-Jan-10 12:18
macupryk16-Jan-10 12:18 
GeneralThe Secret $5680 in 24 Hour Strategy Pin
mFarooq7215-Jan-10 14:38
mFarooq7215-Jan-10 14:38 
GeneralRe: The Secret $5680 in 24 Hour Strategy Pin
Mycroft Holmes15-Jan-10 16:27
professionalMycroft Holmes15-Jan-10 16:27 
QuestionUsing table Variables Create outside a UDF inside a UDF Pin
Vimalsoft(Pty) Ltd15-Jan-10 1:08
professionalVimalsoft(Pty) Ltd15-Jan-10 1:08 
AnswerRe: Using table Variables Create outside a UDF inside a UDF Pin
Mycroft Holmes15-Jan-10 16:33
professionalMycroft Holmes15-Jan-10 16:33 
GeneralRe: Using table Variables Create outside a UDF inside a UDF Pin
Vimalsoft(Pty) Ltd16-Jan-10 20:01
professionalVimalsoft(Pty) Ltd16-Jan-10 20:01 
AnswerRe: Using table Variables Create outside a UDF inside a UDF Pin
Eddy Vluggen17-Jan-10 6:06
professionalEddy Vluggen17-Jan-10 6:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.