Tag Info

New answers tagged

0

Amend your table definition as following to add two additional indices (My apologies for the SQL Server syntax - it's all I have here at the moment): CREATE TABLE IF NOT EXISTS tutte_polynomial( graph_id INTEGER, x_degree UNSIGNED INTEGER, y_degree UNSIGNED INTEGER, coeff INTEGER ,primary key clustered ...


3

The number of polynomials is the number of distinct graph_id values. (You probably have a separate table for graphs; in this case, the SELECT DISTINCT subqueries can be replaced with SELECT graph_id FROM graph.) To count unique polynomials, we exclude any that are duplicates. A polynomial is a duplicate if there exists any other polynomial with a smaller ...



Top 50 recent answers are included