### etal's blog

By etal, history, 6 years ago, In this post I'll try to expose the results of my research regarding the rating formula. More specifically, I'll show a graph that gives you a match rating according to your performance in a contest and some aspects of how ratings are updated. This post is quite large, if you are only interested in the results you can easily skim through it :) By etal, 6 years ago, mariabauza and I are trying to do the Travelling Salesman Problem in a segment graph (for a real life application, it's not a CP problem): you are given 10-100 segments in the plane you have to color (go through), give the shortest path to color them all.

For example, here are 2 possible paths (in red) for the same segments, one shorter than the other. To do it we use the 2-opt algorithm we learned in Petr's blog. There he explains that the 2-opt algorithm works very well, finding the best solution in very few tries. However, with only those 5 (random) segments it only finds the optimal solution 26% of the time after 400 restarts (finding only local minimums during 400 tries, 74% of the time).

Do you think the algorithm may not be as effective for the fact we are now dealing with segments and not points? Or are you sure the algorithm should work almost perfectly and we must have some bug? (We have looked our code thoroughly before posting here, but you never know) Can it be slightly modified to work better in this kind of graph?

Finally, we know that we can develop TSP algorithms for Euclidean graphs, but the only one we know (using the MST) doesn't quite apply when dealing with segments. Do you know/can you come up with any other algorithm that could help?

Thanks! tsp,
By etal, 7 years ago, The problem I've run into is the following:

We have a graph G in which the weights of its edges are upward parabolas varying in time. For each instant t, we could potentially calculate the Minimum Spanning Tree. Since parabolas are convex and MST(t) is a minimisation problem we can try to find the 'global' MST: from all the infinetely many times t choose the MST(t) with minimal weight.

I've found an E3·log(V) algorithm: two parabolas meet at most 2 times, thus the numbers of crossings of all weight parabolas is E(E - 1) = O(E2). At all times between two consecutive crossings the order of the edges is the same; therefore the MST will be the same. Thus, we can compute it using Kruskal in O(E·logV) and then minimize for the edges found in O(V).

Can you find a faster solution? [I don't know if it exists :) ]

Thank you! By etal, 8 years ago, scc,
{"ft_lang_label":"__label__en","ft_lang_prob":0.95874506,"math_prob":0.93860066,"size":345,"snap":"2021-31-2021-39","text_gpt3_token_len":69,"char_repetition_ratio":0.11730205,"word_repetition_ratio":0.0,"special_character_ratio":0.20289855,"punctuation_ratio":0.07462686,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9810308,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],"im_url_duplicate_count":[null,null,null,null,null,null,null,4,null,4,null,null,null,null,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-07-24T07:06:34Z\",\"WARC-Record-ID\":\"<urn:uuid:42239770-c405-40a5-a3cb-e3a262326c88>\",\"Content-Length\":\"88695\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:b7e641fe-7330-4f83-b551-02aa70959754>\",\"WARC-Concurrent-To\":\"<urn:uuid:de926e01-bfd0-4400-a32c-e04c07db9a67>\",\"WARC-IP-Address\":\"213.248.110.126\",\"WARC-Target-URI\":\"https://codeforces.com/blog/etal\",\"WARC-Payload-Digest\":\"sha1:L2S35SH2QKE6XCQW673YKEEJBSU3RJ3M\",\"WARC-Block-Digest\":\"sha1:37NJ66PEKYF7UVASXHMDCK4KYWU5XWC7\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-31/CC-MAIN-2021-31_segments_1627046150134.86_warc_CC-MAIN-20210724063259-20210724093259-00416.warc.gz\"}"}