Log in or Sign up
Coin Talk
Home
Forums
>
Coin Forums
>
Ancient Coins
>
Confused about Leu bidding
>
Reply to Thread
Message:
<p>[QUOTE="kirispupis, post: 8233596, member: 118780"]I believe the algorithm is different. You can divide it into two parts - pre-bid and live.</p><p><br /></p><p><b>Pre-bid</b></p><p>Given a bid for x CHF on item foo:</p><p>Is the bid higher than the current?</p><p> No - ignore the bid</p><p> Yes - Has this user already placed a bid for the item?</p><p> No - Enter the bid as a new row in the table</p><p> Yes - update the existing bid for the new amount</p><p><br /></p><p>The logic that displays the current max is separate. </p><p>Choose the top two rows by price.</p><p> Is the lower value plus the bid increment greater than the higher value?</p><p> No - display the lower value plus the bid increment</p><p> Yes - display the higher value</p><p><br /></p><p><b>Live</b></p><p>Given a bid for x CHF on item foo:</p><p>Enter the bid into the system</p><p>Validation that the bid is at least one increment higher than the current is done on the client, though presumably it's done again here for data security.</p><p><br /></p><p>The logic that displays the current max:</p><p>Choose all the live rows and the top pre-bid row.</p><p>Similar logic to the above, but factoring in pre-bids and live bids.[/QUOTE]</p><p><br /></p>
[QUOTE="kirispupis, post: 8233596, member: 118780"]I believe the algorithm is different. You can divide it into two parts - pre-bid and live. [B]Pre-bid[/B] Given a bid for x CHF on item foo: Is the bid higher than the current? No - ignore the bid Yes - Has this user already placed a bid for the item? No - Enter the bid as a new row in the table Yes - update the existing bid for the new amount The logic that displays the current max is separate. Choose the top two rows by price. Is the lower value plus the bid increment greater than the higher value? No - display the lower value plus the bid increment Yes - display the higher value [B]Live[/B] Given a bid for x CHF on item foo: Enter the bid into the system Validation that the bid is at least one increment higher than the current is done on the client, though presumably it's done again here for data security. The logic that displays the current max: Choose all the live rows and the top pre-bid row. Similar logic to the above, but factoring in pre-bids and live bids.[/QUOTE]
Your name or email address:
Do you already have an account?
No, create an account now.
Yes, my password is:
Forgot your password?
Stay logged in
Coin Talk
Home
Forums
>
Coin Forums
>
Ancient Coins
>
Confused about Leu bidding
>
Home
Home
Quick Links
Search Forums
Recent Activity
Recent Posts
Forums
Forums
Quick Links
Search Forums
Recent Posts
Competitions
Competitions
Quick Links
Competition Index
Rules, Terms & Conditions
Gallery
Gallery
Quick Links
Search Media
New Media
Showcase
Showcase
Quick Links
Search Items
Most Active Members
New Items
Directory
Directory
Quick Links
Directory Home
New Listings
Members
Members
Quick Links
Notable Members
Current Visitors
Recent Activity
New Profile Posts
Sponsors
Menu
Search
Search titles only
Posted by Member:
Separate names with a comma.
Newer Than:
Search this thread only
Search this forum only
Display results as threads
Useful Searches
Recent Posts
More...