Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
0 Endorsements
~1K People Reached

7 Posted Topics

Member Avatar for laehc

The obvious way to compile a while-loop is with a conditional branch at the start and an unconditional branch at the end to loop back. Suppose the condition is A>B, then a conditional branch at the end testing A<=B will fall through when the loop is done, instead of jumping …

Member Avatar for laehc
0
177
Member Avatar for wateen1

I'm guessing you are either struggling with the basics or not bothering to do the work. I'm only answering 1. A XOR B = AB' + A'B [code]A B A XOR B AB' A'B AB'+A'B 0 0 0 0 0 0 0 1 1 0 1 1 1 0 0 …

Member Avatar for laehc
-1
121
Member Avatar for laehc

I can't get anything useful from GDB 6.8 (GNU debugger) on a program compiled with gfortran. I compiled testprog.exe with gfortran using the flags -g and -o (and no other flags) with gcc version 4.5.0. It runs OK, I tried using GDB with it to learn about GDB, but without …

0
93
Member Avatar for liujanet

I've never written pseudocode before so I don't know about the style. 1) Simple but not efficient: list=empty for integer i=1 to n if i divides n exactly put i in the list end if end for sort the list print the list That's probably some horrible mix of Fortran …

Member Avatar for Truthful
0
310
Member Avatar for scuzzo

Here's an easy way to get: 1 + 2 + 3 + ... + n = n(n+1)/2 Taking n=6, write the sum underneath in reverse order, and add each column like this: 1 + 2 + 3 + 4 + 5 + 6 6 + 5 + 4 + 3 …

Member Avatar for laehc
0
133
Member Avatar for laehc

I recently unrolled an insertion sort and on 60 items it was twice as slow as the looped version. I'm guessing that's because it was too big for the instruction cache, being 1032 KB. First, does that seem a likely explanation? If so, to avoid that problem, do I just …

Member Avatar for laehc
0
154
Member Avatar for S.A.H

Good luck. I've seen claims that radix sort is time-linear but I've seen it debunked and I'm inclined to believe the debunking. Unfortunately I can't find the articles. I think it depends on the number of different values that the key you are sorting on can take. Imagine a list …

Member Avatar for laehc
0
68

The End.