search for: nqueens

Displaying 4 results from an estimated 4 matches for "nqueens".

Did you mean: queens
2019 Nov 26
2
[Clang] memory allocation
Thanks David for your reply! However, OK is called inside nqueens. So, the same stack space cannot be used/reused for both of them. Best, Mohammad On Wed, Nov 20, 2019 at 11:43 PM David Blaikie <dblaikie at gmail.com> wrote: > You printed &j and &solutions - did you mean to print 'solutions' instead > of '&solutions' Bec...
2019 Nov 20
2
[Clang] memory allocation
...int i, j; char p, q; printf("jjjjjjjjj: %d, %p\n", n,&j); for (i = 0; i < n; i++) { p = a[i]; for (j = i + 1; j < n; j++) { q = a[j]; if (q == p || q == p - (j - i) || q == p + (j - i)) return 0; } } return 1; } void nqueens (int n, int j, char *a, int *solutions) { int i,res; sharedVar = sharedVar * j - n; if (n == j) { /* good solution, count it */ *solutions = 1; return; } printf("solutions: %d, %p\n", j, &solutions); *solutions = 0; /* try each possible position for queen <j>...
2010 Aug 08
0
[LLVMdev] MmapAllocator
...yurl.com/24dy7ql > > ### nbody ### > Mem max: 13552.000 -> 13240.000: 1.0236x smaller > Usage over time: http://tinyurl.com/23dstyu > > ### normal_startup ### > Mem max: 5380.000 -> 5396.000: 1.0030x larger > Usage over time: http://tinyurl.com/2fh7cmv > > ### nqueens ### > Mem max: 12832.000 -> 12756.000: 1.0060x smaller > Usage over time: http://tinyurl.com/29whema > > ### pickle ### > Mem max: 6856.000 -> 6844.000: 1.0018x smaller > Usage over time: http://tinyurl.com/3az5v6y > > ### pickle_dict ### > Mem max: 6848.000 ->...
2010 Aug 08
4
[LLVMdev] MmapAllocator
...8.000: 1.0085x smaller Usage over time: http://tinyurl.com/24dy7ql ### nbody ### Mem max: 13552.000 -> 13240.000: 1.0236x smaller Usage over time: http://tinyurl.com/23dstyu ### normal_startup ### Mem max: 5380.000 -> 5396.000: 1.0030x larger Usage over time: http://tinyurl.com/2fh7cmv ### nqueens ### Mem max: 12832.000 -> 12756.000: 1.0060x smaller Usage over time: http://tinyurl.com/29whema ### pickle ### Mem max: 6856.000 -> 6844.000: 1.0018x smaller Usage over time: http://tinyurl.com/3az5v6y ### pickle_dict ### Mem max: 6848.000 -> 6836.000: 1.0018x smaller Usage over time: h...