mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > PrimeNet > MISFIT

Closed Thread
 
Thread Tools
Old 2012-09-09, 16:18   #23
swl551
 
swl551's Avatar
 
Aug 2012
New Hampshire

80210 Posts
Default Thx... I'm working at implementing it now

Quote:
Originally Posted by chalsall View Post
That is correct.

I'll follow up later after I port the code an run some proofs on it.
swl551 is offline  
Old 2012-09-09, 17:02   #24
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

11100001101012 Posts
Default

Quote:
Originally Posted by swl551 View Post
I assume your code is calculating only the GhzDaysFactorNotFound value portion?
The PrimeNet code that assigns credit for factors found is buggy; a found factor should be either less than or equal to the no factor credit amount. (Think about it: If I test 2^70-2^71 and don't find a factor, that's the exact same amount of work as testing 2^70-2^71 and finding a factor.)

Thus you can use that formula for either case, unless your app can detect when a factor is found but the bit-level search was not complete.
Dubslow is offline  
Old 2012-09-09, 17:10   #25
swl551
 
swl551's Avatar
 
Aug 2012
New Hampshire

2·401 Posts
Default chasall's perl to c#

public static double CalcGHDZ(ulong exp, int from, int to)
{
double GHZdays=0;

for(int i=from+1;i <= to;i++)
{

GHZdays += (0.00707 * 2.4) * (Math.Pow(2, i - 48)) * 1680 / exp;
}

return (GHZdays);
}
swl551 is offline  
Old 2012-09-09, 18:46   #26
swl551
 
swl551's Avatar
 
Aug 2012
New Hampshire

2·401 Posts
Default 1.3.5 beta available. GHZ days calc now included

This is a beta releaes.

Be sure to have 1.2.6 fully up and running before replacing the mfaktXApp.exe with this beta version.


Ghz Days calculation converted from chalsall's perl implementation. THANK YOU!!!
----- perl from chalsall
sub CalculateGHzDaysTF {
my ($Exp, $From, $To) = @_;
my ($GHzDays, $Cnt);

$GHzDays = 0;

for ($Cnt = $From + 1; $Cnt <= $To; $Cnt++) {
$GHzDays += (0.00707 * 2.4) * (2 ** ($Cnt - 48)) * 1680 / $Exp;
}

return $GHzDays;

}

-- converted to C# by swl551
public static double CalcGHDZ(int exp, int from, int to)
{
double GHZdays=0;

for(int i=from+1;i <= to;i++)
{

GHZdays += (0.00707 * 2.4) * (Math.Pow(2, i - 48)) * 1680 / exp;
}

return GHZdays;
}


--------------------------------------------





Get from SkyDrive http://sdrv.ms/QsaP9Y
swl551 is offline  
Old 2012-09-09, 19:11   #27
kladner
 
kladner's Avatar
 
"Kieren, ktony"
Jul 2011

100101010001102 Posts
Default

Hey Scott,

I just wanted to say thanks, again. The occasion is that I finally straightened out the Launch and Ctl-C functions.

The problems were purely from my own inattentiveness regarding paths and exact program names. This app has continued to improve in its convenience since you first put it out. I really appreciate your work.

EDIT: I should add that the Duplicate checker is an immense time saver.

Last fiddled with by kladner on 2012-09-09 at 19:46
kladner is offline  
Old 2012-09-10, 12:02   #28
swl551
 
swl551's Avatar
 
Aug 2012
New Hampshire

2·401 Posts
Default Thanks Kladner!

Quote:
Originally Posted by kladner View Post
Hey Scott,

I just wanted to say thanks, again. The occasion is that I finally straightened out the Launch and Ctl-C functions.

The problems were purely from my own inattentiveness regarding paths and exact program names. This app has continued to improve in its convenience since you first put it out. I really appreciate your work.

EDIT: I should add that the Duplicate checker is an immense time saver.
I'm glad you got your paths straight and appreciate your comments.

thx.
swl551 is offline  
Old 2012-09-10, 13:49   #29
kladner
 
kladner's Avatar
 
"Kieren, ktony"
Jul 2011

2×13×367 Posts
Default Feature Request?

Would it be possible to augment the Duplicate Finder to allow searching for a particular exponent across several worktodo files? That is, if an exponent is present, show which worktodo file it is in, (and otherwise return "Not Found")?

Thanks!

Last fiddled with by kladner on 2012-09-10 at 13:50
kladner is offline  
Old 2012-09-10, 16:24   #30
swl551
 
swl551's Avatar
 
Aug 2012
New Hampshire

2·401 Posts
Default Duplicate factors test

Quote:
Originally Posted by kladner View Post
Would it be possible to augment the Duplicate Finder to allow searching for a particular exponent across several worktodo files? That is, if an exponent is present, show which worktodo file it is in, (and otherwise return "Not Found")?

Thanks!
I added the "check for duplicates" to help me test my "assign work" and "balance work" features. If you have ongoing duplicate issues to the point where you actually know the factor to look for I'd have to guess you are hand editing worktodo.txt files. MfaktXapp is supposed to replace the need to hand edit files.

So, the real question is why are there duplicates and can mfaktXapp do something more to assist in managing workToDo.txt files?
swl551 is offline  
Old 2012-09-10, 16:35   #31
kladner
 
kladner's Avatar
 
"Kieren, ktony"
Jul 2011

2×13×367 Posts
Default

Quote:
Originally Posted by swl551 View Post
I added the "check for duplicates" to help me test my "assign work" and "balance work" features. If you have ongoing duplicate issues to the point where you actually know the factor to look for I'd have to guess you are hand editing worktodo.txt files. MfaktXapp is supposed to replace the need to hand edit files.

So, the real question is why are there duplicates and can mfaktXapp do something more to assist in managing workToDo.txt files?
Sorry. I did not make myself clear. The program already says where duplicates are. However, I track the age of assignments. Sometimes, older ones turn up rather far down in worktodo. I suppose that this can happen when they are preceded by several longer-running exponents. I only thought that the same general function could provide the location of a particular exponent, so that I could move it up the list. (Duplicates are not a common problem, but can happen when rearranging things. This probably comes from an accidental Ctl-C, instead of Ctl-X.)
kladner is offline  
Old 2012-09-10, 16:51   #32
swl551
 
swl551's Avatar
 
Aug 2012
New Hampshire

2×401 Posts
Default Ok.

Quote:
Originally Posted by kladner View Post
Sorry. I did not make myself clear. The program already says where duplicates are. However, I track the age of assignments. Sometimes, older ones turn up rather far down in worktodo. I suppose that this can happen when they are preceded by several longer-running exponents. I only thought that the same general function could provide the location of a particular exponent, so that I could move it up the list. (Duplicates are not a common problem, but can happen when rearranging things. This probably comes from an accidental Ctl-C, instead of Ctl-X.)
Now that sounds like a great feature. Search on EXp and it will report not_found or if found report file_name, position_in_file_from_top
swl551 is offline  
Old 2012-09-10, 18:19   #33
kladner
 
kladner's Avatar
 
"Kieren, ktony"
Jul 2011

2·13·367 Posts
Default

Quote:
Originally Posted by swl551 View Post
Now that sounds like a great feature. Search on EXp and it will report not_found or if found report file_name, position_in_file_from_top
And your addition is something I had not thought of. I only hoped to know which of 4 worktodo's to look in. Knowing where in the file would be great!

Thanks again for everything.
kladner is offline  
Closed Thread

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
(archive)MISFIT swl551 MISFIT 584 2013-03-19 20:13
(archive)mfaktXapp 1.4 swl551 MISFIT 125 2012-11-09 14:50
Corrupt archive D_unreg Information & Answers 4 2009-02-18 12:00
Archive 2 for Other results (>155) em99010pepe Octoproth Search 161 2007-06-08 21:31
The Archive... Xyzzy Lounge 11 2003-03-31 20:42

All times are UTC. The time now is 11:11.

Thu Apr 9 11:11:13 UTC 2020 up 15 days, 8:44, 1 user, load averages: 1.49, 1.33, 1.30

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.