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

Резултати

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

Търсене: #dedust

当前筛选 #dedust清除筛选
TONlines – News

@tonlines · Post #7546 · 20.11.2025 г., 14:56

⚡️The Daily TON: DeDust Introduces CPMM v2 Pools #DeDust#TON The Daily TON reports on DeDust.io's launch of CPMM v2 liquidity pools, making it easier for liquidity providers to separate profits and initial liquidity. The update benefits token creators on the Uranus memepad by simplifying fee structures and offering new opportunities for meme token projects. Source: link @tonlines

Hashtags

TONlines – News

@tonlines · Post #7544 · 20.11.2025 г., 12:56

⚡️DeDust.io: Launch of New CPMM v2 Pools #TON#DeDust DeDust.io introduces new CPMM v2 liquidity pools, improving reward systems for token creators and traders on the TON platform. The update addresses tracking of earnings and allows trading fees to be claimed separately from the core LP position. A new Creator Fee feature is also introduced, streamlining fee collection for token creators. Source: link @tonlines

Hashtags

TONlines – News

@tonlines · Post #6878 · 21.04.2025 г., 13:09

EVAA: DeDust Rewards Now Available #EVAA#DeDust The EVAA channel has announced that rewards for users who supplied LP tokens and used them in liquidity loops via EVAA lending are now available. A total of 369 users who deposited DeDust LPs during the reward window can claim their TON rewards in the EVAA Rewards section. Source: link @tonlines

Hashtags

TONlines – News

@tonlines · Post #7259 · 18.05.2025 г., 09:20

TON — LIVE: DeDust Announces Staking Update #DeDust#staking The channel TON — LIVE shares that DeDust has announced a staking update, distributing 200,000 DUST to stakers as an incentive until the launch of version 2.0, expected in the third quarter of 2025. Source: link @tonlines

TONlines – News

@tonlines · Post #7529 · 19.11.2025 г., 13:15

⚡️TON — LIVE: Launch Meme-Tokens Easily with Uranus #DeDust#finance TON — LIVE introduces Uranus, a new tool by the DeDust team on x1000.finance, facilitating one-click launches of meme-tokens. Token creators can now earn up to 70% of trading fees. Source: link @tonlines

☕️ The upcoming XP halving for swaps and a mini-review of the situation as EVAA itself overcame the overload of the blockchain ↗️ The recently added token exchange mechanism in the EVAA bot showed good results – the volume of swaps exceeded $6,5 million, we described it in detail in our last post. Important update: The reward for exchanges has been halved and is now 5 #EVAA XP for each exchanged US dollar. 📉 We all remember how recently our blockchain was under heavy load, most swaps through the most popular DEX #StonFi were stuck in a queue for hours, but since EVAA implemented the dex aggregator 💱Swap Coffee, these problems were avoided - all transactions through EVAA were automatically redirected to #DeDust, allowing more flexible in current volatile situations. Recall the advantages of swaps inside EVAA: 🟡Advanced routing. 🟡Standard commissions, like on DeDust or StonFi. 🟡Rewards in the form of a $CES token and EVAA XP. 🛡 Also, due to the tension and concern about the safety of funds in DeFi projects, EVAA decided to remind everyone that all funds are safe: ➖We can safely withdraw our tokens using "Repay All & Withdraw All", even if price flow oracles or other systems do not work. Although transactions may take a little longer under these conditions, they will be completed, ensuring that we can always access our funds after paying off any borrowed tokens. ➖EVAA has a $350,000 reserve fund to cover losses resulting from issues such as delayed liquidation, which keeps your funds safe. 🎉 Congratulations to our EVAA on breaking surpassing the 12,000 on-chain users mark. We remind you that the coin listing is coming soon, 3 halvings are already over, 😇 so we continue to farm XP points and actively swap through EVAA! EVAA app | News | Chat | Video-guide

TONlines – News

@tonlines · Post #7261 · 18.05.2025 г., 11:24

⚡️The Daily TON: Updates on $DUST Staking and Future Developments #DUST#DeDust The Daily TON reports significant updates to the $DUST staking program on DeDust.io. The team distributed $320,000 in USDt as rewards, calculated based on staking duration, and outlined plans for Staking 2.0. However, further rewards are paused until the new system launches in Q3 2025. Source: link @tonlines

Hashtags

TONlines – News

@tonlines · Post #6845 · 18.04.2025 г., 18:12

⚡️TON Community: Results of TON x Jupiter Exchange Competition #TON#JupNet#DeDust The TON Community announces the winners of the TON x Jupiter Exchange competition. DeDust and swap.coffee have emerged as leaders, securing opportunities for potential integration into JupNet, as well as receiving audits and investor introductions. Source: link @tonlines

TONCO: 3 months of growth, Liquidity Migration 3.0 and a new notification bot ↗️ The team shared their achievements over the 3 months since the launch on mainnet: 🟡#TONCO took 4th place in The Open League and received the "Best DeFi Project" award on TONX. 🟡 $2.5M TVL ATH and $1.2M daily trading volume ATH. 🟡 Advanced LP presets (strategies), Telegram Mini App and other features have appeared. 🟡 DEX Aggregator Integration☕️ SwapCoffee. 🟡 Average APR was ~185%, 3k+ unique LPs and 40k transactions. 🔄 New campaign Liquidity Migration 3.0 together with Tonstakers. The condition is as usual simple — transfer your liquidity from DeDust or StonFi in the pair $tsTON/$USDT and wait for the results. Migration guide. In the previous two similar campaigns, the chance of winning was decent, while there is an opportunity to farm APR in the same pair at ~180%, 😮 This is +/- 60 times more than v2 #DeDust and #StonFi. The promotion will last until March 5 , and the total prize is💵 1000, which will be divided among 30 winners ($33 each). 🔔New feature for working with CLAMM V3 TONCO – bot for receiving notifications. Now you will start receiving notifications if your position goes beyond the allowed interval. The bot is intuitive, you need to connect the wallet and select the desired positions for tracking. ❓TONCO regularlyholds giveawayswith riddles in theirchat. For those whose total balance is zero, this is a fairly easy way to collect a small starting capital using your knowledge of DEX. TONCO | Channel | Chat

TONlines – News

@tonlines · Post #7256 · 18.05.2025 г., 08:44

⚡️DeDust.io Launches Staking 2.0 with Bonus Incentives #DeDust#staking#liquidity DeDust.io is enhancing its staking program with the introduction of Staking 2.0 and announcing a promotional budget of 200,000 $DUST for stakers during the transition. This update precedes the launch of DeDust X featuring liquidity pools with customizable logic and aims to provide more fair and robust incentives for long-term stakeholders. Source: link @tonlines

DeDust.io x OKX Wallet joint campaign Recently, OKX Wallet, a Web3 wallet by the popular crypto exchange, added support for TON and featured DeDust.io as one of the most popular TON dApps. 🎁A huge promotional campaign has been launched to increase exposure for TON. Among other prizes, $50,000 worth of $SCALE is up for grabs. The campaign can be found under the Cryptopedia tab in the Discover section. How to participate: Install the OKX app on your mobile phone, set up a wallet, and complete quests. #DeDust#OKX#web3#TON#DEX

😇LP Pool Rewards Payouts and Upcoming Events 😇EVAA distributed #TON for using LP tokens from🟧#DeDust. All users who provided their LP in EVAA have already been paid. Check your rewards in the "Rewards" section. 🎙 There are two events ahead – an AMA session (today) and an offline meeting in Dubai: ➡️The online broadcast (workshop) will be dedicated to oracles and TMA development. It will be especially useful for developers and those participating in the TON Mini Apps Build Contest. AMA will start at 13:00 (UTC +3) on four platforms for CIS users at once: YouTube, Telegram, Twitter and Twitch. ➡️The second event will be held offline at #TOKEN2049 in Dubai on April 30. The main topic for discussion is how neobanking works on blockchain technologies. Sponsored by #StonFi. 🥹Find out more and sign up for the side event. 😇EVAA app | News | Chat

12
ПредишнаСтр. 1 от 2Следваща