Author Topic: "Linear" galaxy ?  (Read 5042 times)

0 Members and 1 Guest are viewing this topic.

Offline ZimRathbone

  • Captain
  • **********
  • Posts: 408
  • Thanked: 30 times
  • Gold Supporter Gold Supporter : Support the forums with a Gold subscription
    2021 Supporter 2021 Supporter : Donate for 2021
    2023 Supporter 2023 Supporter : Donate for 2023
Re: "Linear" galaxy ?
« Reply #15 on: December 18, 2011, 04:41:04 PM »
That's what i said. Okay... I wasn't very clear  ;D. But yes, I understand how it works :).

What i was saying is that setting 90% in Gen. Chance and 2 in Gen. Spread. (for example) is, in fact, ineffective. With these settings, a system should only have 4 possible jump points, sometimes more if they fall into the "10%" that does not link to a local system.


Not quite.   It is possible to have multiple JP in a system that go to the same destination system (although different JPs obviously) - the most I have seen is three JP pairs linking the same two systems.   I believe that its even possible for a system to link to itself, but I'm not sure if the time I saw this was in Aurora or Starfire Assistant.  I certainly remember it being quite useful as the physical locations of the two ends were quite far apart, and allowed a short cut from the outer edges of the system to the inner planets (a bit like Lagrange points can be now)
« Last Edit: December 18, 2011, 05:29:53 PM by ZimRathbone »
Slàinte,

Mike
 

Offline Mysterius (OP)

  • Petty Officer
  • **
  • Posts: 27
Re: "Linear" galaxy ?
« Reply #16 on: December 18, 2011, 04:45:12 PM »
Systems are not generated until they are explored so having 10,000 max or 100 max makes no difference to performance. That is only affected by systems that have been generated.

Yes, increasing the max number of systems is clearly a good option. I was only asking if it was possible to limit hidden JP while also having a limited number of systems.

I understand that systems are only generated when they are explored. Still, since I like to play with NPRs, they will tend to generate new NPRs as they explore (and increase lag). Or is the "NPR generation chance" enabled only when the player race explores?

Thanks for the answers anyway people, i'll live with what I have  ;D
« Last Edit: December 18, 2011, 04:47:33 PM by Mysterius »
Quote from: Atlantia
Quote from: Person012345
The commission of the first Dwarf class mining ship. 

I hope it menaces with spikes of Duranium and is adorned with hanging rings of Corbomite!
 

Offline Vynadan

  • Lt. Commander
  • ********
  • V
  • Posts: 255
Re: "Linear" galaxy ?
« Reply #17 on: December 18, 2011, 04:49:32 PM »
NPRs can 'awaken' other NPRs.

Actually, you could manually set the NPR generation chance to 0% at the game info screen whenever you're not transiting a jump point for the first time yourself. This way you'd stop NPRs from creating new ones, but keep the chance for yourself. That'd require minimal increment adjustments / attention for your survey fleets.
« Last Edit: December 18, 2011, 04:51:21 PM by Vynadan »
 

Offline Steve Walmsley

  • Aurora Designer
  • Star Marshal
  • S
  • Posts: 11695
  • Thanked: 20557 times
Re: "Linear" galaxy ?
« Reply #18 on: December 18, 2011, 05:01:37 PM »
Yes, increasing the max number of systems is clearly a good option. I was only asking if it was possible to limit hidden JP while also having a limited number of systems.

I understand that systems are only generated when they are explored. Still, since I like to play with NPRs, they will tend to generate new NPRs as they explore (and increase lag). Or is the "NPR generation chance" enabled only when the player race explores?

Thanks for the answers anyway people, i'll live with what I have  ;D

Unfortunately they are mutually exclusive requirements. If you generate 100 systems with a max system number of 10,000 then they will tend not to be interconnected. If you generate 100 systems with a max system number of 100 then they have connect to each other because there is nowhere else to go. This is regardless of whether you or NPRs are doing the exploring.

Steve
 

Offline Mysterius (OP)

  • Petty Officer
  • **
  • Posts: 27
Re: "Linear" galaxy ?
« Reply #19 on: December 18, 2011, 05:08:01 PM »
Thank you all :)
Quote from: Atlantia
Quote from: Person012345
The commission of the first Dwarf class mining ship. 

I hope it menaces with spikes of Duranium and is adorned with hanging rings of Corbomite!
 

Offline sloanjh

  • Global Moderator
  • Admiral of the Fleet
  • *****
  • Posts: 2805
  • Thanked: 112 times
  • 2020 Supporter 2020 Supporter : Donate for 2020
    2021 Supporter 2021 Supporter : Donate for 2021
Re: "Linear" galaxy ?
« Reply #20 on: December 18, 2011, 07:53:55 PM »
When 100 systems have been discovered the chance of connecting to an existing system is still 100-1

But the chance of a loop existing somewhere in that 100 systems is O(1).  Intuitively, this can be understood by thinking about the next 100 systems.  You'll be rolling against odds of at least 100-1 100 times, so the odds are that at least one of those rolls will come up a winner.  For the first 100 systems, the odds will be lower than 100-1, but the same general principle applies - systems 51-100 will give you at least roughly 1-in-4.  This is very similar to the "compare birthdays" cocktail game http://en.wikipedia.org/wiki/Birthday_problem - the odds of two people in a room having the same birthday approaches unity for a surprisingly small number of people, because it doesn't matter which birthday gets a match.  The reason that this maps to the birthday problem is that the "new" end of a link can be thought of as that link's "birthday".

As discussed in the article, the true probability of no matches occurring in m links with N systems is roughly m!*(N choose m)/N^m (up to shifts by 1 or two in the value of m).  Also as discussed in the article, the easy way to see when the probability of a match approaches unity is to compare N to (m choose 2) = m*(m-1)/2.  When m ~ sqrt(2N), these will be roughly equal and the odds are high of a match somewhere.

So if you want to be able to generate roughly M systems before the odds are good of getting a match, you need roughly M^2 total systems.  I would choose N at either 1,000,000 or even 1,000,000,000 (assuming Steve didn't use 16-bit ints for system index).  I wouldn't go much above 1,000,000,000, since that would overflow a 32-bit integer.

John
« Last Edit: December 19, 2011, 08:25:27 AM by sloanjh »
 

Offline ZimRathbone

  • Captain
  • **********
  • Posts: 408
  • Thanked: 30 times
  • Gold Supporter Gold Supporter : Support the forums with a Gold subscription
    2021 Supporter 2021 Supporter : Donate for 2021
    2023 Supporter 2023 Supporter : Donate for 2023
Re: "Linear" galaxy ?
« Reply #21 on: December 18, 2011, 11:32:07 PM »
Thanks for that John, it allowed me to solve a minor (but very irritating) problem at work.

Who says gaming is not good for productivity!  ;D
Slàinte,

Mike
 

Offline sloanjh

  • Global Moderator
  • Admiral of the Fleet
  • *****
  • Posts: 2805
  • Thanked: 112 times
  • 2020 Supporter 2020 Supporter : Donate for 2020
    2021 Supporter 2021 Supporter : Donate for 2021
Re: "Linear" galaxy ?
« Reply #22 on: December 19, 2011, 08:23:25 AM »
Thanks for that John, it allowed me to solve a minor (but very irritating) problem at work.

Who says gaming is not good for productivity!  ;D

You're welcome.  And here I was, thinking people would say "ho hum" :)

John
 

Offline Steve Walmsley

  • Aurora Designer
  • Star Marshal
  • S
  • Posts: 11695
  • Thanked: 20557 times
Re: "Linear" galaxy ?
« Reply #23 on: December 20, 2011, 11:46:12 AM »
But the chance of a loop existing somewhere in that 100 systems is O(1).  Intuitively, this can be understood by thinking about the next 100 systems.  You'll be rolling against odds of at least 100-1 100 times, so the odds are that at least one of those rolls will come up a winner.  For the first 100 systems, the odds will be lower than 100-1, but the same general principle applies - systems 51-100 will give you at least roughly 1-in-4.  This is very similar to the "compare birthdays" cocktail game http://en.wikipedia.org/wiki/Birthday_problem - the odds of two people in a room having the same birthday approaches unity for a surprisingly small number of people, because it doesn't matter which birthday gets a match.  The reason that this maps to the birthday problem is that the "new" end of a link can be thought of as that link's "birthday".

As discussed in the article, the true probability of no matches occurring in m links with N systems is roughly m!*(N choose m)/N^m (up to shifts by 1 or two in the value of m).  Also as discussed in the article, the easy way to see when the probability of a match approaches unity is to compare N to (m choose 2) = m*(m-1)/2.  When m ~ sqrt(2N), these will be roughly equal and the odds are high of a match somewhere.

So if you want to be able to generate roughly M systems before the odds are good of getting a match, you need roughly M^2 total systems.  I would choose N at either 1,000,000 or even 1,000,000,000 (assuming Steve didn't use 16-bit ints for system index).  I wouldn't go much above 1,000,000,000, since that would overflow a 32-bit integer.

John

Yes, I was aware of that. Until recently, odds were quite important in my day job :). I was just pointing out that after 100 systems have been discovered, the next jump point you go through has a 100-1 chance of connecting to one of those systems. I didn't really express that as clearly as I could have done :)

Steve
 

Offline sloanjh

  • Global Moderator
  • Admiral of the Fleet
  • *****
  • Posts: 2805
  • Thanked: 112 times
  • 2020 Supporter 2020 Supporter : Donate for 2020
    2021 Supporter 2021 Supporter : Donate for 2021
Re: "Linear" galaxy ?
« Reply #24 on: December 21, 2011, 12:04:17 AM »
Until recently, odds were quite important in my day job :).

Which I was thinking while I was typing :)  It was more exposition for the OP....

Merry Christmas!

John