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

Резултати

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

Търсене: #callegram

当前筛选 #callegram清除筛选
@Call News

@call_updates · Post #86 · 28.06.2025 г., 14:02

🆕Events are already here! Greetings friends, we are glad to present our 3rd main part of our service — Events. From this moment on, you can create and take part in offline and online events. Choose your time, date, and the number of guests and share them with future participants ✉️ Of course, we have implemented the «Check in» function for offline events. Scan QR codes at the entrance within our app. If you don't want to see someone at your event, don't worry; you can always block and unblock them. The app has a special counter for users who were blocked ✏️ The next steps for events are — NFT utility. Stay tuned 🖼 Create your first event right now #MiniApps#Callegram

@Call News

@call_updates · Post #85 · 25.06.2025 г., 08:24

✏️Events are coming this week Hi guys! After weeks of development we plan to launch events at the end of the week. Don't forget to turn on notifications on this channel. See you 🙂 Source of the Event picture #MiniApps#Callegram

@Call News

@call_updates · Post #83 · 12.04.2025 г., 07:47

🆕Callegram AI and Google Calendar Export Hi all! Today we're glad to present you with our new features: AI chatbot and Export into your Google Calendar. Help of AI. Since today you can easily set up your AI chatbot. All your customers could book an appointment via messages or voice messages directly into your chat window. You don't need to be 24/7 because Callegram AI is taking the hardest steps on itself. Export into Google Calendar. You told us about the option to export all Callegram events (Calls, Appointments and Events in the future) into your Google Calendar. Here it is 🙂 Now Callegram has 2 ways for Import and Export. You don't need to care about manual actions between the apps, just give the Callegram option to do its job ⚡️ Please leave all your Qs below in the comments field and we will help you with setup. Have a nice day! #MiniApps#Callegram

@Call News

@call_updates · Post #79 · 19.11.2024 г., 10:46

What you should know about the new Telegram update: • Quick access to your favorite Mini App from Home Screen; • Faster way to share your schedule; • Monthly subscription in Stars ⭐ • Loading logo on the background Thanks Telegram team for the update. We’re on our way 👀 #Callegram#MiniApps

@Call News

@call_updates · Post #58 · 02.08.2024 г., 09:20

🗓Mini App Store Here Hi! Recently Telegram team has launched Mini Apps Store List of apps. Now you can browse popular apps directly in your search bar. Just update Telegram app. We've been doing our best to be there and give millions of people option to manage their time within Telegram in a few clicks. We continue to work on the Appointments feature to bring a new and useful experience. Stay tuned to Callegram for the latest developments 🙂 App | #Callegram#MiniApps

@Call News

@call_updates · Post #65 · 05.09.2024 г., 11:57

🎤Who We are? Today we want to share with you some info about our team and who are building the Callegram: Denis Matveev (left): 7+ years experience in Product and Community management. Winner of 5+ contests around TON and other blockchains. Adviser at SNOVA Capital. Ex: Tonkeeper, Tonpound teams. Andrew Gostishchev (right): 9+ years experience in Full Stack development. 5+ products for companies with a total revenue of 5M$+. Winner of different hackathons around TON blockchain. Technical adviser at SNOVA Capital. D&A Team (Both): Winners of worldwide Telegram Mini Apps Contest. 6+ done mini apps in web2 & web3 with total audience 1M+. Speakers across Mini Apps conferences in South Korea, Georgia and other countries. TON Nest pitch deck 1st place. ✨ We've been building Callegram with passion, experience and understanding what Telegram should have in the ecosystem App | #Callegram#MiniApps#TON

@Call News

@call_updates · Post #73 · 09.10.2024 г., 09:58

🆕Appointments here! We glad to present you a 1st version of Appointment system. This journey was challenging, interesting and took 4 months. We faced complex challenges where we had to create a new approach. 🌐 Now you can discover all kind of businesses in one mini app with convenient map. Your country, your service, your time! 🛍 We know that our users want to provide their customers with only the best service that will work 24/7 without interruption. All on one page and app. Provide services and book services from others. The era of Telegram appointments is now open! And don't forget, almost all new businesses will be available for viewing and researching by thousands of Callegram users. Don't miss the opportunity to be the first to create a business! App | #Callegram#MiniApps#Appointments

@Call News

@call_updates · Post #68 · 16.09.2024 г., 14:10

✏️Find a Cool Service Directly in @CallegramBot? Why Not? We’re almost here with a new huge update — Appointments. Our users will be trying to find an awesome services directly in the mini app. We’re doing our best! App | #Callegram#MiniApps#Appointments

@Call News

@call_updates · Post #59 · 09.08.2024 г., 13:05

©Appointments: First Impressions This video shows how to create a business and service pages. Soon you will able to provide your offline and online services to your customers with convenient way to book them automatically in a few clicks within Telegram 🗓 We're waiting your comments! App | #Callegram#MiniApps#Appointments

@Call News

@call_updates · Post #82 · 31.01.2025 г., 10:28

We're ready to launch events 🗓 Every day Andrew Gostishchev (@arterialist) and me Denis Matveev (@krimon) create Callegram. This product allows people to use opportunities to book time inside Telegram at the moment. Everyone would like to try out the ability to create events and participate in them. We know this and we aim to realize it into something that everyone wants. It's a joy for us to create! The video above shows the process of booking time for people to come to an event. Enjoy watching it for your feedback, which we value and need very much. This way we can create the product that everyone wants and needs so much faster and better. Don't forget that there will be a second video coming out soon where we will describe the process of creating these events, so anyone can invite people to their events using Callegram 🙂 Just go for the best apps inside Telegram. Your Callegram Team! Join the Waitlist here #MiniApps#Callegram#BestAppEverAndForever

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