Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6136017
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:33:04+00:00 2026-05-23T17:33:04+00:00

I am running a search algorithm which is fed at the start with a

  • 0

I am running a search algorithm which is fed at the start with a single seed. From this point on I expect the algorithm to behave in a deterministic fashion, which it largely does. I can largely verify this by looking at the 10,000th step, 20,000 step and seeing they are identical. What I am seeing different though is the length of thread processor time used to get to the same place (having taken identical paths). I am measuring the thread time with
ProcessThread.TotalProcessorTime.

To quantify this I have done some tests for you. I varied the run time and measured the number of solutions evaluated within this time


    30s         60s          120s        120s
473,962     948,800     1,890,668   1,961,532
477,287     954,335     1,888,955   1,936,974
473,441     953,049     1,895,727   1,960,875
475,606     953,576     1,905,271   1,941,511
473,283     951,390     1,946,729   1,949,231
474,846     954,307     1,840,893   1,939,160
475,052     952,949     1,848,938   1,934,243
476,797     957,179     1,945,426   1,951,542

475,034     476,599       473,831     486,721
  1,478       2,426        23,922      11,108

I repeated the test 8 times for each. The bottom two rows show the Average solutions evaluated over a 30 second period followed by the Standard Deviation. I repeated the 120s test as the standard deviation was so high the first time and much lower the second time.

If my algorithm is doing the same work then what could cause the same work to take different amounts of time? What random element is being introduced?

To clarify a few points:

  1. I am talking about Thread Processor time and not Clock time
  2. The algorithm runs on a single thread with no explicit interactions with other threads
  3. This environment is Windows XP .Net C# Dual processor
  4. It is a console application
  5. The algorithm uses the processor and memory, only after it has finished will it print the result to screen.

Best Regards

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T17:33:05+00:00Added an answer on May 23, 2026 at 5:33 pm

    Optimization, memory management (GC, allocation, paging, etc.) and Just in Time compilation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a script that I'm running from the home directory to search for
Running a ServiceHost with a single contract is working fine like this: servicehost =
I'm running a search application on a FAST ESP server. Now I have this
I want to search a file in the current directory from which the batch
I am trying to derive the average case running time for deterministic linear search
I'm running this in the URL: https://www.googleapis.com/shopping/search/v1/public/products?key=thekey&country=US&q=xbox+360&alt=json This gives me output like: { kind:
I'm implementing a A* search algorithm but I keep running into problems with the
While running a best-first search from M Tim Jones' Artificial Intelligence: A Systems Approach
Search Engine Optimization (SEO) seems to be a topic I'm running into more and
I am running a Solr instance on Jetty and when I search using the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.