There's no algorithm. Just a query language. Nothing is pushed to consumer. You want to buy something. You search. Companies can't pay anyone for any kind of publishing. Anyone is free to build tools and content that helps with the search. However companies can publish information about their products and services only through the database.
> However companies can publish information about their products and services only through the database.
Since we're already dreaming, I'd modify this to say companies can publish information about their products and services only on their own website, and the database just links to it.
I wouldn't go that route just in case companies has incentive to obfuscate the information. Forcing them to publish through the database makes them confirm their information to one structure so consumers have easier time searching comparing and deciding. I'd also make publishing of some information mandatory before you can sell to customers.
I didn't mean my suggestion to imply that the DB would be barren of information and you'd have to go to multiple websites to compare products. However, I think the information in the DB, even if provided by the company, should be vetted and inputted by a neutral party, since the company has an incentive to manipulate or bias it.