Skip to main content
3 votes
2 answers
174 views

I do understand I have mistakes in this code #include <stdio.h> #include <stdlib.h> #include <string.h> int diziyi_yazdır(int dizi[], int dizi_uzunluğu) { for (int i ...
Creedance's user avatar
9 votes
3 answers
611 views

Consider an array of a permutation P of length n (n > 2), namely some order of the integers 1 through n. Example of P with length n = 7, [6,5,2,3,7,1,4] A "score" of a permutation is ...
user31824378's user avatar
-2 votes
2 answers
241 views

I have a list of a = [5,6,7,9] I want all the possible permutations, with one or more entry fixed. e.g. If I want to fix third element 7, then in all permutations I want to see 7 in the third place of ...
Zeryab Hassan Kiani's user avatar
4 votes
2 answers
185 views

Does C standard library provide any function that generate a random permutation of consecutive numbers within a range? How to make a function that efficiently does it? I'm thinking of making a random ...
PkDrew's user avatar
  • 2,301
0 votes
1 answer
70 views

I read that a function f is equivariant if f(P(x)) = P(f(x)) where P is a permutation So to check what means equivariant and permutation invariant I wrote the following code import torch import torch....
fenaux's user avatar
  • 47
-3 votes
1 answer
119 views

I have two JavaScript generator functions for permutations. They both provide Heap's enumeration. Question: I would like to know whether one implementation can be derived from the other by some ...
Hubert Kauker's user avatar
9 votes
3 answers
411 views

The problem Let's say you have 4 red balls, 2 blue balls and 1 green ball. That is 7 balls, and considering a ball can't be distinguished from another if it has the exact same color, this makes for a ...
RedStoneMatt's user avatar
  • 1,364
0 votes
0 answers
208 views

I am fairly confident (maybe I should not be) that I have structured my data correctly for PERMANOVA analysis in the vegan package using the adonis2() function. For my study design, I placed paired ...
Amanda Goldberg's user avatar
5 votes
2 answers
136 views

In his classical paper Permutation Generation Methods, Computing Surveys 1977, Robert Sedgewick presents his "Algorithm 1" on page 140 like this: procedure permutations(N); begin ...
Hubert Kauker's user avatar
1 vote
0 answers
66 views

I'm trying to check my understanding of how to determine the appropriate permutation restrictions for a two way anova where one of the variables is nested in the other, and making sure I understand ...
tlyons253's user avatar
  • 117
4 votes
3 answers
142 views

I have a vector of length 100 and I want to get a sample of certain size like 50, from all permutations of length 20 from elements of my original vector My attempt so far is to first to get all ...
Brian Smith's user avatar
  • 1,709
0 votes
1 answer
67 views

A permutations problem (LeetCode), which finds the permutations of an array [1,2,3], is returning an empty array through a backtracking recursive function. The console prints out the following: Input ...
Will Sherman's user avatar
1 vote
2 answers
118 views

I have a long input list, and I want to generate combinations of 3 elements. But each combination's elements should be drawn from a length-5 sublist of the original list, rather than drawing elements ...
tim pain's user avatar
5 votes
5 answers
177 views

I want to make a pandas dataframe with three columns, such that the rows contain all permutations of three columns, each with its own range of values are included. In addition, I want to sort them asc ...
noogrub's user avatar
  • 961
1 vote
1 answer
158 views

Hi I have made this code. Τhe code generates all binary permutations of a string with a given number of zeros and ones, checks for adjacency based on a specific homogeneity condition (differing by ...
Cybercode's user avatar

15 30 50 per page
1
2 3 4 5
355