Just trying to find out which of these five isprime functions is the fastest.

Member Avatar
Member Avatar
+1 forum 6

I want to write a code for Radix Sort based in this way how I made the Quick Sort, how can I do with Radix Sort, can anybady have any idea I have search a lot but I can not find any exactly what I need #include <iostream> #include <conio.h> #include <time.h> #include <stdlib.h> //srand and rand functions using namespace std; void add_random_numbers(long arr[], long b); void QuickSort(long vektori[], long left, long right); long const MADH_MAX_VEKTORIT = 110000; int main() { long random_vector[MADH_MAX_VEKTORIT]; long vector[] = { 1000, 10000, 15000, 25000, 30000, 45000, 50000, 60000, 75000, 90000, 100000 }; long …

Member Avatar
Member Avatar
+0 forum 1

I want to do one example of Radix sort generating random numbers and timing. Can anybady help me? Here is the radix pseudocode function radixSort(String s) for i in (s.length - 1) -> 0 do stableSort(s[i])

Member Avatar
+0 forum 0

Hey all - I have searched the internet with no luck, so I finally resorted to here to ask for information. I am trying to find a way to find the time it takes to shut down, sleep, and wake from sleep for a Windows 7 install. I understand that there are solutions (BootRacer, Soluto, even the Windows Event Viewer) to find out the boot time for Windows, but I cannot find out how to time the rest of these! Thanks in advance.

Member Avatar
Member Avatar
+0 forum 5

Hello friends, I had done some questions regarding function call. I had done an console application that can run a particular set of code every minute. For that i used System.Threading.Thread.Sleep(60000); That worked well too. But now i stuck in another problem. Now I dont wanna use the above code.Because of the reason the thread.sleep() makes the entire application to sleep for a minute. But I am having a code that must be executed in the mean time. Any suggestions or help? TIA...

Member Avatar
Member Avatar
+0 forum 6

Hello I have two questions about timing diagram but I have no idea how to do them, and the due date is like 2 days away. Please help me. Thank you. 1) The circuit shown here needs to have its timing checked for specific input sequences on A, B and C. Complete the timing diagram shown for this circuit. All gates have 1 unit delay. ![11](/attachments/large/4/11.PNG "11") 2)Inputs A and B have the sequence shown. Draw the full waveform responses for Q and QB. Each gate has a 1 unit delay. In the sample timing chart shown the vertical lines …

Member Avatar
Member Avatar
+0 forum 2

Hello I have a question that is driving me crazy. I am trying to set a cookie after the page has loaded for 1 minute. Currently in my script I set it to activate the cookie after 12 seconds. but it doesn't seem to work. Please help me.. Thanks [CODE] <script type="text/javascript"> jQuery(document).ready(function($) { var hour = 0; var minutes = 0; var secs = 12; var thisdelay = (hour*60*60*1000) + (minutes * 60 * 1000) + (secs * 1000); $.cookie("myppix", "<?php echo "$mypp"; ?>").delay(thisdelay); }; //prevents jQuery 1.5.1 and 1.3.2 from conflicting jQuery.noConflict(); </script> [/CODE]

Member Avatar
Member Avatar
+0 forum 1

This code is based on code from series of programs [URL="http://www.ferg.org/thinking_in_tkinter/"]'Thinking in tkinter'[/URL] This code is not perfect, especially it does not recognize key release when mouse moves out of button area during push. Leave event could also be captured for that to stop the event in that case.

Member Avatar
+0 forum 0

Here is simple math program to list number whose all factors are in given set of factors. I have included my timing decorator, which uses my timestring function, so I included that and imports for decorator in the decorator function, bit against the rules. Of course I could have used also the timeit module. I have implemented task by using previous results and expanding those and using modified sieve algorithm. For the sieve method you should provide your favorite prime_sieve in module utils or change the name according to your module/function name.

Member Avatar
+0 forum 0

Hi all. I'm trying to add a slight delay to [URL="http://www.kutztown.edu/library/labs/newt.asp"]this page's[/URL] drop-down menu. Though I assume that entails a call to setTimeout() somehow, I've tried all I can think of (which isn't much...) and am clueless. Thank you for any tips! [CODE] <script type="text/javascript"> var timeout = 200; var closetimer = 0; var ddmenuitem = 0; function jsddm_open() { jsddm_canceltimer(); jsddm_close(); ddmenuitem = $(this).find('ul').css('visibility', 'visible');} function jsddm_close() { if(ddmenuitem) ddmenuitem.css('visibility', 'hidden');} function jsddm_timer() { closetimer = window.setTimeout(jsddm_close, timeout);} function jsddm_canceltimer() { if(closetimer) { window.clearTimeout(closetimer); closetimer = null;}} $(document).ready(function() { $('#jsddm > li').bind('mouseover', jsddm_open) $('#jsddm > li').bind('mouseout', jsddm_timer)}); document.onclick = …

Member Avatar
Member Avatar
+0 forum 9

I'm doing my master thesis on radar signal generation and to create a scenario, I need to have a timing in execution of my C-script of microseconds resolution. By using the time.h I can only get to a resolution of 1 millisecond. I know it is feasible in linux, but the use of windows is here mandatory. A major problem with windows is that the resolution varies too much if you have different processes running. I have been thinking about two different solutions: 1. Could I change the priority of processes running in order to have the processors priority for …

Member Avatar
Member Avatar
+0 forum 2

The End.