TGTGInsightтелеграм анализLIVE / telegram public index
← Такты, стеки, два колеса

TGINSIGHT SIMILAR POSTS

Намери подобно съдържание

Изходен канал @clockstackwheels · Post #1084 · 9.04

В общем, была задача на оптимизацию плана работ: есть набор заказов, и в каждом N тасков. Таски могут зависеть друг от друга или нет, имеют длительность и тип. Ещё есть M работников, каждый из которых может выполнять таски только определённых типов, причём, у каждого своя скорость. Если все таски в заказе выполнены, фирма получает сколько-то денег. У заказа есть дедлайн, за просрочку штраф (за каждый день просрочки), который вычитается из цены заказа. И ещё фирма тратит деньги за каждый день своей работы независимо от того, как загружены её сотрудники (то есть просто платит зарплаты по сути). Ещё важен учёт праздников и выходных. Нужно заработать на определённом наборе заказов и работников как можно больше денег. Полный текст задачи и код программы проверки есть в репозитории. Эта задача является изменённым заказом, который мы с напарником решали в реальной жизни: оптимизация работы печатных станков для типографии. Правда, тогда и мы справились так себе, и заказчик в итоге сначала захотел всё вручную сам делать, а потом и вовсе похоронил проект при смене директора. !!! Не читайте дальше, если хотите сначала попробовать решить самостоятельно, потому что я сейчас опишу эффективные подходы и результаты. ________________________________________ Так вот. Мы с другим экспертом Андреем сразу сели и написали разные варианты, чтобы задать шкалу, по которой будем оценивать решения команд. За пару часов я собрал примитивный жадный алгоритм, который сортировал заказы по прибыльности и укладывал в сетку кое-как, это дало нам нижнюю оценку. Мой алгоритм заработал ~75 млн виртуальных рублей, мы решили для оценки поставить нижней границей 40 млн. То есть всё, что ещё ниже, оценивалось в ноль баллов за качество оптимизации. Затем Андрей закрылся дома на три дня и вышел на свет со сложным жадным алгоритмом, который очень хитро сортировал заказы и очень хитро укладывал их в сетку, попутно выбирая разные способы этой укладки в зависимости от конкретного заказа. Это позволило заработать ~275 млн рублей. Мы сделали верхней границей для оценки 280 млн. К сожалению, в итоге только две команды из десяти прошли нижнюю границу, заработав, соответственно, ~91 и ~105 млн. К верхней границе не приблизился никто. И у четырёх команд алгоритм вообще не смог уложить без нарушений задачи в сетку (то есть, например, произвольно менял длительности, накладывал задачи друг на друга, давал одному работнику две задачи в один момент и так далее). Важной ошибкой команд, на мой взгляд, являлся тот факт, что никто не воспользовался возможностью запустить алгоритм на несколько минут и дать ему поработать. По условиям задания, можно было тянуть до 5 минут на одну оптимизацию, но по факту решения команд отрабатывали за единицы и десятки секунд. На самом конкурсе, пока команды работали, я решил попробовать сделать быстрое (по времени написания) но эффективное решение. Сначала попробовал жадную сортировку + доведение до лучшего варианта методом имитации отжига. В качестве нового состояния я просто менял местами заказы целиком. Этот вариант работал пару минут и дал мне около ~200 млн дохода. К слову, команда-лидер использовала такой же подход, просто не докрутила число итераций и температуру. Ну и потом я взял готовую либу по реализации классической генетики с особями и скрещиванием. Особью был массив с приоритетами заказов (которые конечно же нужно было аккуратно уложить чистым алгоритмом). Тип скрещивания: scattered. Всего 15 поколений по 20 особей, и это за минуту-полторы давало ~230-240 млн. Считаю, что для конкурса это самый лучший выбор: пишется одним человеком за день и даёт почти максимум, при этом легко настраивается на нужную длительность работы, легко параллелится. Ну а потом уже дома я посидел и накодил свой вариант сложного жадного с плавающим окном перебора отсортированных заказов и плавающей же укладкой по работникам. Такая штука за две минуты зарабатывает ~281 млн. Но за три дня в условиях стресса я бы такое не сделал, скорее всего. #dev

Hashtags

Резултати

Намерени 119 подобни публикации

Търсене: #sec

当前筛选 #sec清除筛选
SIGNAL

@finsignal · Post #3956 · 11.09.2025 г., 15:21

⚡️ SEC is changing the rules of the game At the OECD roundtable, #SEC head Paul Atkins presented a new strategy - Project Crypto 🟡 Onchain capital raising without endless legal barriers 🟡 Allowing the format of "super apps" for trading (trading, staking, lending in one place) 🟡 Most tokens will not be considered securities 🟡 Abandoning "regulation by coercion" in favor of clear and predictable rules 🟡 Emphasizing international cooperation (references to MiCA in Europe)

Hashtags

SIGNAL

@finsignal · Post #3114 · 21.05.2024 г., 04:57

⚡️⚡️⚡️Unexpected from #SEC: Spot Ethereum ETFs are about to be approved Exchanges wishing to trade cellular Ethereum ETFs have received an urgent request from the SEC to update Forms 19 b4, Coindesk reports. This may indicate possible approval of applications by Thursday. However, according to Coindesk, S1 applications also need to be approved to start trading, and SC can consider them indefinitely. One company that spoke with the SEC noted an improvement in the approval process, although it previously believed that the regulator was delaying the deadline. 👌Bloomberg analysts have increased the probability of approval of the spot Ethereum ETF from 25% to 75%. A decision on VanEck is expected on May 23. Before approving the spot Bitcoin ETF, the regulator asked the exchanges to take similar actions.

Hashtags

Alex Kowalski | Trade

@kowalskitrade · Post #130 · 30.05.2024 г., 09:31

SEC Issues alert on Pump and Dump Memecoins 🥳 The #SEC warns investors about fraudulent "pump and dump" memecoins created by celebrities. 📈Sign up on Bybit to trade with me

Hashtags

SIGNAL

@finsignal · Post #2892 · 19.02.2024 г., 19:22

🇺🇸 American banks have applied to the #SEC for permission to store #Bitcoin The ability for banks to store $BTC will immediately allow them to start selling their banking products to all consumers — which in turn can lead to a significant increase in demand 🚀

Hashtags

SIGNAL

@finsignal · Post #3524 · 15.09.2024 г., 14:36

#SEC backs down — tokens have never been securities 😅 The SEC stated that it had never directly referred to tokens as securities. This follows from a footnote to the regulator's lawsuit against the #Binance exchange. By using the term "crypto asset securities", the Commission does NOT mean a token as such, but a complete set of contracts, expectations and agreements. The regulator "regrets" any confusion that may have arisen in connection with this and undertakes not to use it anymore.

Hashtags

SpotOnChain | Announcement

@spotonchain · Post #777 · 11.04.2024 г., 01:49

The $UNI price plummeted by ~16% (7H) after #SEC warned to sue @Uniswap. Watch out for a possible further price drop as Smart trader 0x335 just deposited 1.25M $UNI ($12.05M) to #Binance at ~$9.66 via 2 wallets in the past hour, realizing an estimated profit of $4.23M (+54.7%)! Notably, the whale also made $5.76M in total profit from $ETH, $COMP, and $AAVE before. Follow @spotonchain and set alerts for $UNI at https://platform.spotonchain.com/en/platform/token?name=UNI

Hashtags

SIGNAL

@finsignal · Post #3452 · 08.08.2024 г., 15:45

💰 .The trial with Ripple has been completed Ripple (XRP) was fined $125 million for institutional token sales. The #XRP token itself is not recognized as a security, which means that all claims from the #SEC have been settled. The four-year-long story has come to an end.

Hashtags

SIGNAL

@finsignal · Post #3330 · 29.06.2024 г., 13:17

The #SEC's powers are being reduced 😱 A post for those who like to figure it out 🔩 Yesterday, the US Supreme Court limited the SEC's right to hear cases by "full-time judges" (the procedure has been used for cases of securities fraud and financial penalties since the 2008 crisis). The restriction was introduced by 6 votes to 3, there are dissenters. ☝️ Now, in order to consider the case, the SEC must necessarily apply to the federal courts of first instance with the participation of a jury. ❓Why is this important for the crypt? Some cases "against cryptocurrencies" were considered by the SEC in a "simplified manner," including "incorrect indication of the fund's assets." Potentially, this restriction will also apply to the definition of assets in the #ETF for cryptocurrency. After all, the SEC believes that a cryptocurrency ETF is an ETF for securities, while the cryptocurrency itself is a commodity/property. Look at how everything turned around in this election race! The presidents, in pursuit of the votes of the cryptans, are now gradually beginning to put sticks in the wheels of the regulator - the SEC. Either this is a "circus with horses", or we are really close to masadopshn as never before…

Hashtags

SIGNAL

@finsignal · Post #3282 · 19.06.2024 г., 06:02

🔹#SEC closes investigation against #Ethereum The regulator will no longer bring charges, claiming that the sales of #ETH are securities transactions. This news gave rise to the crypt.

Crypto Australia🇭🇲🇭🇲

@CryptoAustralia · Post #15197 · 10.01.2024 г., 07:33

#BTC made a potential retest back to the Major Support zone as expected. Well, this was due to a Positive tweet from Official X account of #SEC on #ETF. This was a fake news as it dropped when came into highlight. Also, mostly event aligns with Technical most of the time. Now today we've to wait and watch for the news to kick in momentum into the market. By Crypto Australia

Hashtags

123•••910
ПредишнаСтр. 1 от 10Следваща