Click here to Skip to main content
15,886,567 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Another Math Question Pin
0x01AA21-Jan-22 11:49
mve0x01AA21-Jan-22 11:49 
GeneralRe: Another Math Question Pin
Nelek21-Jan-22 12:02
protectorNelek21-Jan-22 12:02 
GeneralRe: Another Math Question Pin
0x01AA21-Jan-22 12:11
mve0x01AA21-Jan-22 12:11 
GeneralRe: Another Math Question Pin
Gary R. Wheeler21-Jan-22 11:30
Gary R. Wheeler21-Jan-22 11:30 
GeneralRe: Another Math Question Pin
Jon McKee21-Jan-22 12:23
professionalJon McKee21-Jan-22 12:23 
GeneralRe: Another Math Question Pin
Stefan_Lang22-Jan-22 13:37
Stefan_Lang22-Jan-22 13:37 
GeneralRe: Another Math Question Pin
Jon McKee23-Jan-22 14:47
professionalJon McKee23-Jan-22 14:47 
GeneralMath Terminology: Can you tell me? Pin
raddevus21-Jan-22 8:55
mvaraddevus21-Jan-22 8:55 
Background
I'm attempting to solve a problem in the most efficient way possible.
Attempting to solve the problem put me on the path to attempting to explain the problem.
That put me on the path of wondering if there is a term for this.

Problem Definition
I have two lists of strings.

* origItems
* newItems

I want to find all the strings in newItems that are not contained in origItems.
I want to make a new list that contains only those new items.

The C# code to solve the problem looks like the following:

C#
List<String> origItems = new List<String>();
	origItems.Add("abc");
	origItems.Add("def");
	origItems.Add("ghi");
	
	List<String> newItems = new List<String>();
	newItems.Add("abc");
	newItems.Add("def");
	newItems.Add("super");
	newItems.Add("extra");
	
	List<String> itemsOnlyInNew = newItems.Except(origItems).ToList();
	foreach (String s in itemsOnlyInNew){
		Console.WriteLine(s);
	}


The output is :
super
extra

Is there a mathematical term that covers this (searching one list based upon another list of items)?
(I'm thinking like the term permutation but I don't believe this is a permutation.)

Please Feel Free To Make Up A Term
If there isn't already a term (in English), please make one up.
If there is a term in another language please share that and we'll incorporate it.

Just thought this was interesting.
Thanks much.
GeneralRe: Math Terminology: Can you tell me? Pin
NeverJustHere21-Jan-22 9:01
NeverJustHere21-Jan-22 9:01 
GeneralRe: Math Terminology: Can you tell me? Pin
raddevus21-Jan-22 9:11
mvaraddevus21-Jan-22 9:11 
PraiseRe: Math Terminology: Can you tell me? Pin
0x01AA21-Jan-22 9:22
mve0x01AA21-Jan-22 9:22 
GeneralRe: Math Terminology: Can you tell me? Pin
0x01AA21-Jan-22 9:04
mve0x01AA21-Jan-22 9:04 
GeneralRe: Math Terminology: Can you tell me? Pin
raddevus21-Jan-22 9:13
mvaraddevus21-Jan-22 9:13 
GeneralRe: Math Terminology: Can you tell me? Pin
0x01AA21-Jan-22 9:28
mve0x01AA21-Jan-22 9:28 
GeneralRe: Math Terminology: Can you tell me? Pin
raddevus21-Jan-22 9:39
mvaraddevus21-Jan-22 9:39 
GeneralRe: Math Terminology: Can you tell me? Pin
0x01AA21-Jan-22 9:50
mve0x01AA21-Jan-22 9:50 
GeneralRe: Math Terminology: Can you tell me? Pin
PIEBALDconsult21-Jan-22 9:06
mvePIEBALDconsult21-Jan-22 9:06 
GeneralRe: Math Terminology: Can you tell me? Pin
raddevus21-Jan-22 9:14
mvaraddevus21-Jan-22 9:14 
GeneralRe: Math Terminology: Can you tell me? Pin
PIEBALDconsult21-Jan-22 9:17
mvePIEBALDconsult21-Jan-22 9:17 
GeneralRe: Math Terminology: Can you tell me? Pin
megaadam21-Jan-22 9:17
professionalmegaadam21-Jan-22 9:17 
GeneralRe: Math Terminology: Can you tell me? Pin
obermd21-Jan-22 10:19
obermd21-Jan-22 10:19 
GeneralRe: Math Terminology: Can you tell me? Pin
englebart21-Jan-22 11:07
professionalenglebart21-Jan-22 11:07 
GeneralRe: Math Terminology: Can you tell me? Pin
Leo5623-Jan-22 20:56
Leo5623-Jan-22 20:56 
GeneralRe: Math Terminology: Can you tell me? Pin
Bruce Patin24-Jan-22 3:28
Bruce Patin24-Jan-22 3:28 
GeneralRe: Math Terminology: Can you tell me? Pin
John Godin24-Jan-22 3:57
John Godin24-Jan-22 3:57 

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.