Counting triplets where each elements are from different groupsRecursive and closed form solution for choosing $n$ pairs/triplets.. of $kn$ elements.Counting triplets with red edges in each pairSelect elements from $N$ setsTwo different results for splitting sample points into groups of a certain size?Counting distinct positive valued k-tuples that sum to n where each entry can be no greater than some value.Arranging m distinct groups of k elements each?How many ways can numbers be split into different groupsForming triplets from pairsCounting different way of arranging letters from two groups, without repetitionsThe number of sequences of length $10$ that can be formed with $5$ unique digits containing two of each where no two adjacent elements are alike
How does Loki do this?
How can I kill an app using Terminal?
Large drywall patch supports
Two monoidal structures and copowering
Why are there no referendums in the US?
What is the best translation for "slot" in the context of multiplayer video games?
Is a stroke of luck acceptable after a series of unfavorable events?
Would this custom Sorcerer variant that can only learn any verbal-component-only spell be unbalanced?
How do scammers retract money, while you can’t?
Increase performance creating Mandelbrot set in python
How to check is there any negative term in a large list?
Would a high gravity rocky planet be guaranteed to have an atmosphere?
Return the Closest Prime Number
Avoiding estate tax by giving multiple gifts
What does "I’d sit this one out, Cap," imply or mean in the context?
Flow chart document symbol
A Rare Riley Riddle
Different result between scanning in Epson's "color negative film" mode and scanning in positive -> invert curve in post?
Class Action - which options I have?
Do the temporary hit points from the Battlerager barbarian's Reckless Abandon stack if I make multiple attacks on my turn?
What is paid subscription needed for in Mortal Kombat 11?
Failed to fetch jessie backports repository
Why does indent disappear in lists?
Trouble understanding the speech of overseas colleagues
Counting triplets where each elements are from different groups
Recursive and closed form solution for choosing $n$ pairs/triplets.. of $kn$ elements.Counting triplets with red edges in each pairSelect elements from $N$ setsTwo different results for splitting sample points into groups of a certain size?Counting distinct positive valued k-tuples that sum to n where each entry can be no greater than some value.Arranging m distinct groups of k elements each?How many ways can numbers be split into different groupsForming triplets from pairsCounting different way of arranging letters from two groups, without repetitionsThe number of sequences of length $10$ that can be formed with $5$ unique digits containing two of each where no two adjacent elements are alike
$begingroup$
Let's say we have given groups with more elements each, is there easy way to count number of ways to choose three elements from different groups.
For example if our groups are $1, 2 text and 3, 4$. There are two ways to form the triplets $1, 2, 3, 1, 2, 4$.
I tried fixing all three groups but that works in $O(N^3)$, where $N$ is the number of groups. Is it possible to make it in $O(N)$?
combinatorics
$endgroup$
add a comment |
$begingroup$
Let's say we have given groups with more elements each, is there easy way to count number of ways to choose three elements from different groups.
For example if our groups are $1, 2 text and 3, 4$. There are two ways to form the triplets $1, 2, 3, 1, 2, 4$.
I tried fixing all three groups but that works in $O(N^3)$, where $N$ is the number of groups. Is it possible to make it in $O(N)$?
combinatorics
$endgroup$
$begingroup$
Do you mean there can be $N>3$ groups? (Because if there are exactly $N=3$ groups the answer is trivial. But then I'm surprised your example has $N=3$.)
$endgroup$
– antkam
14 hours ago
$begingroup$
Yes, there can be N>3 groups
$endgroup$
– someone123123
14 hours ago
$begingroup$
Can I assume all the groups are disjoint, i.e. no element appears in two or more groups? If so, I have an $O(N)$ solution... Is this homework? If so I will give you a hint, otherwise I will post the solution.
$endgroup$
– antkam
14 hours ago
add a comment |
$begingroup$
Let's say we have given groups with more elements each, is there easy way to count number of ways to choose three elements from different groups.
For example if our groups are $1, 2 text and 3, 4$. There are two ways to form the triplets $1, 2, 3, 1, 2, 4$.
I tried fixing all three groups but that works in $O(N^3)$, where $N$ is the number of groups. Is it possible to make it in $O(N)$?
combinatorics
$endgroup$
Let's say we have given groups with more elements each, is there easy way to count number of ways to choose three elements from different groups.
For example if our groups are $1, 2 text and 3, 4$. There are two ways to form the triplets $1, 2, 3, 1, 2, 4$.
I tried fixing all three groups but that works in $O(N^3)$, where $N$ is the number of groups. Is it possible to make it in $O(N)$?
combinatorics
combinatorics
asked 22 hours ago
someone123123someone123123
455414
455414
$begingroup$
Do you mean there can be $N>3$ groups? (Because if there are exactly $N=3$ groups the answer is trivial. But then I'm surprised your example has $N=3$.)
$endgroup$
– antkam
14 hours ago
$begingroup$
Yes, there can be N>3 groups
$endgroup$
– someone123123
14 hours ago
$begingroup$
Can I assume all the groups are disjoint, i.e. no element appears in two or more groups? If so, I have an $O(N)$ solution... Is this homework? If so I will give you a hint, otherwise I will post the solution.
$endgroup$
– antkam
14 hours ago
add a comment |
$begingroup$
Do you mean there can be $N>3$ groups? (Because if there are exactly $N=3$ groups the answer is trivial. But then I'm surprised your example has $N=3$.)
$endgroup$
– antkam
14 hours ago
$begingroup$
Yes, there can be N>3 groups
$endgroup$
– someone123123
14 hours ago
$begingroup$
Can I assume all the groups are disjoint, i.e. no element appears in two or more groups? If so, I have an $O(N)$ solution... Is this homework? If so I will give you a hint, otherwise I will post the solution.
$endgroup$
– antkam
14 hours ago
$begingroup$
Do you mean there can be $N>3$ groups? (Because if there are exactly $N=3$ groups the answer is trivial. But then I'm surprised your example has $N=3$.)
$endgroup$
– antkam
14 hours ago
$begingroup$
Do you mean there can be $N>3$ groups? (Because if there are exactly $N=3$ groups the answer is trivial. But then I'm surprised your example has $N=3$.)
$endgroup$
– antkam
14 hours ago
$begingroup$
Yes, there can be N>3 groups
$endgroup$
– someone123123
14 hours ago
$begingroup$
Yes, there can be N>3 groups
$endgroup$
– someone123123
14 hours ago
$begingroup$
Can I assume all the groups are disjoint, i.e. no element appears in two or more groups? If so, I have an $O(N)$ solution... Is this homework? If so I will give you a hint, otherwise I will post the solution.
$endgroup$
– antkam
14 hours ago
$begingroup$
Can I assume all the groups are disjoint, i.e. no element appears in two or more groups? If so, I have an $O(N)$ solution... Is this homework? If so I will give you a hint, otherwise I will post the solution.
$endgroup$
– antkam
14 hours ago
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
return StackExchange.using("mathjaxEditing", function ()
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
);
);
, "mathjax-editing");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "69"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3164181%2fcounting-triplets-where-each-elements-are-from-different-groups%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3164181%2fcounting-triplets-where-each-elements-are-from-different-groups%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
$begingroup$
Do you mean there can be $N>3$ groups? (Because if there are exactly $N=3$ groups the answer is trivial. But then I'm surprised your example has $N=3$.)
$endgroup$
– antkam
14 hours ago
$begingroup$
Yes, there can be N>3 groups
$endgroup$
– someone123123
14 hours ago
$begingroup$
Can I assume all the groups are disjoint, i.e. no element appears in two or more groups? If so, I have an $O(N)$ solution... Is this homework? If so I will give you a hint, otherwise I will post the solution.
$endgroup$
– antkam
14 hours ago