ENG  RUSTimus Online Judge
Online Judge
Задачи
Авторы
Соревнования
О системе
Часто задаваемые вопросы
Новости сайта
Форум
Ссылки
Архив задач
Отправить на проверку
Состояние проверки
Руководство
Регистрация
Исправить данные
Рейтинг авторов
Текущее соревнование
Расписание
Прошедшие соревнования
Правила
вернуться в форум

Обсуждение задачи 1378. Искусственный интеллект

How to solve this problem with 150KB??
Послано Victor Barinov (TNU) 7 мар 2009 15:35
Some authors solved this problem with very good time and very small memory. But if we store input data without compressing it is necessary near 1Mb. Maybe there exist solution without storing input at all?
Who can help me to understand how it is possible?
Re: How to solve this problem with 150KB??
Послано Vedernikoff Sergey (HSE: EconomicsForever!) 8 мар 2009 01:12
You just calculate frequencies of appearing black cells for every row and column. This requires only ~10Kb of memory, and at the same time allows to recognize the figure
Re: How to solve this problem with 150KB??
Послано Victor Barinov (TNU) 11 мар 2009 02:23
Thank you for your answer. But I still don't know how to use frequencies for recognition figures...
Re: How to solve this problem with 150KB??
Послано Vedernikoff Sergey (HSE: EconomicsForever!) 11 мар 2009 02:54
Just think how density functions of projection of every of these figures look like. Circle recognition is easy even by one projection. For some bad cases of squares and triangles you need both projections.
Re: How to solve this problem with 150KB??
Послано Victor Barinov (TNU) 19 мар 2009 03:02
wow! beautifull idea :)
My solution use symmetric of figures.
Re: How to solve this problem with 150KB??
Послано Anisimov Dmitry (Novosibirsk STU) 1 ноя 2009 19:07
In fact, better solution than Sergei said is possible. I think if done in assembly under MS-DOS, solution could use less than half of kilobyte of memory.
How to solve this problem with 150KB??
Послано Серовиков Андрей 17 авг 2010 14:29
I save only 8 points which enough for solution
Re: How to solve this problem with 150KB??
Послано undef 31 июл 2018 22:36
Moment of inertia ;)