Windows 10: code execution

Discus and support code execution in Windows 10 Installation and Upgrade to solve the problem; keep getting MSVCR100.dll when trying to install games... Discussion in 'Windows 10 Installation and Upgrade' started by yogibare326, Oct 25, 2020.

  1. code execution


    keep getting MSVCR100.dll when trying to install games

    :)
     
    yogibare326, Oct 25, 2020
    #1
  2. ashwin Win User

    8-puzzle code executes infinitely.

    Your solution works! make these changes. Just change comment the first two line of equals and yo did not change the Code: public void equals(EightPuzzle test)[/quote] to Code: public void equals(Object test)[/quote] Now it executes withing 1 second for all the inputs. Superb optimization. Thanks*Smile code execution :)
    But I would like to get things clarified.
    You have made the following changes :

    • in astar() you changed Code: EightPuzzle x = openset.seek();[/quote] to Code: EightPuzzle x = openset.poll();[/quote] .This way you could removed the burden of first peeking and then polling.

    • in astar() you converted Code: if(closedset.contains(y)){ continue; } if(!closedset.contains(y)){ openset.add(y); }[/quote] to Code: if (closedset.contains(y)) { continue; } openset.add(y);[/quote] This removed the burden of calling contains two times. Instead you called it only once.
    • BUT in public LinkedList getChildren() of EightPuzzle you just kept one EightPuzzle variable called unified instead of up,right,down,left. And you changed the if statements to do while. Did you make these two change to save memory or does it also make the execution faster? If yes how did these two changes make the execution faster?
    4)
     
    ashwin, Oct 25, 2020
    #2
  3. Kreij Win User
    8-puzzle code executes infinitely.

    Without running this in a debugger or seeing actual values as the code executes, this is a bit hard to do in one's head. lol

    Given that the first code snippet you posted is where the infinite loop is occurring, it looks one of the two while loops is never returning a false value and exiting.

    The While(neighbor.size() > 0) loop doesn't look like the problem as you are removing the head of the list and never putting anything back into it in the loop.

    This would cause me to look at the openset.size() value as the code is running. If a situation occurs where after you remove the head of the list (with the openset.poll() call) another node is always being added by the openset.add() call inside the nested while loop, the size of openset would never reach zero and thus loop forever.

    I could, of course, be totally confused and wrong. *Big Grin code execution :D
     
    Kreij, Oct 25, 2020
    #3
  4. Aquinus Win User

    code execution

    8-puzzle code executes infinitely.

    Bingo, you go from linear time to constant time. Huge performance benefits for large data sets.
    Ahh, right. The object class should be smart enough to use all of the object attributes, but you may want to override it since it could most likely be executed faster. That makes sense, I missed that one. I only spent a little while looking through and editing code.
     
    Aquinus, Oct 25, 2020
    #4
Thema:

code execution

Loading...
  1. code execution - Similar Threads - code execution

  2. My vscode is not executing the code. What to do?

    in Windows 10 Gaming
    My vscode is not executing the code. What to do?: I want to install a vs code with everything at default. What can I do? https://answers.microsoft.com/en-us/windows/forum/all/my-vscode-is-not-executing-the-code-what-to-do/51102e16-43a6-45e0-b2da-ce15a4272c89
  3. My vscode is not executing the code. What to do?

    in Windows 10 Software and Apps
    My vscode is not executing the code. What to do?: I want to install a vs code with everything at default. What can I do? https://answers.microsoft.com/en-us/windows/forum/all/my-vscode-is-not-executing-the-code-what-to-do/51102e16-43a6-45e0-b2da-ce15a4272c89
  4. hitman absolution the code execution cannot proceed

    in Windows 10 Gaming
    hitman absolution the code execution cannot proceed: hitman absolution the code execution cannot proceed not found. Reinstalling https://answers.microsoft.com/en-us/windows/forum/all/hitman-absolution-the-code-execution-cannot/d73479a5-ebca-4b2d-a5c8-457c2c80bb3c
  5. hitman absolution the code execution cannot proceed

    in Windows 10 Software and Apps
    hitman absolution the code execution cannot proceed: hitman absolution the code execution cannot proceed not found. Reinstalling https://answers.microsoft.com/en-us/windows/forum/all/hitman-absolution-the-code-execution-cannot/d73479a5-ebca-4b2d-a5c8-457c2c80bb3c
  6. the code execution cannot proceed because libcurl.dll was not found

    in Windows 10 Software and Apps
    the code execution cannot proceed because libcurl.dll was not found: I am using windows 11 and when i start the pc, its been few days i started getting the one popup with "the code execution cannot proceed because libcurl.dll was not found" and still i can't figure out why this happened and how to solve it please help me out....
  7. the code execution cannot proceed because libcurl.dll was not found

    in Windows 10 Gaming
    the code execution cannot proceed because libcurl.dll was not found: I am using windows 11 and when i start the pc, its been few days i started getting the one popup with "the code execution cannot proceed because libcurl.dll was not found" and still i can't figure out why this happened and how to solve it please help me out....
  8. The code execution cannot proceed because MpGear.dll was not found.

    in Windows 10 Gaming
    The code execution cannot proceed because MpGear.dll was not found.: I have read through some threads but I think my issue is quite different or I just don't understand it as much. Is anyone able to help me with this?...
  9. The code execution cannot proceed because MpGear.dll was not found.

    in Windows 10 Software and Apps
    The code execution cannot proceed because MpGear.dll was not found.: I have read through some threads but I think my issue is quite different or I just don't understand it as much. Is anyone able to help me with this?...
  10. The code execution cannot proceed because ADVAPI32.dll was not found. Reinstalling the...

    in Windows 10 Drivers and Hardware
    The code execution cannot proceed because ADVAPI32.dll was not found. Reinstalling the...: My computer send this message unpon starting and when i try to open any app or Quickbooks. HElp! https://answers.microsoft.com/en-us/windows/forum/all/the-code-execution-cannot-proceed-because/d6d75baa-e7de-4ae3-bdff-a72ee3c9b769