packing Questions

3

Solved

I'm stuck on this: Have a square. Put n points into this square so the minimal distance (not necessary the average distance) is the highest possible. I'm looking for an algorithm which would be abl...
Diuretic asked 27/4, 2010 at 17:50

6

Solved

I have need to pack four signed bytes into 32-bit integral type. this is what I came up to: int32_t byte(int8_t c) { return (unsigned char)c; } int pack(char c0, char c1, ...) { return byte(c0) ...
Triune asked 13/3, 2010 at 4:41

6

I'm trying to put several images together into one big image, and am looking for an algorithm which determines the placing most optimally. The images can't be rotated or resized, but the position i...
Leavings asked 24/9, 2008 at 5:55

8

Solved

I bet somebody has solved this before, but my searches have come up empty. I want to pack a list of words into a buffer, keeping track of the starting position and length of each word. The trick i...
Isatin asked 10/5, 2009 at 13:17

3

Solved

What harm can come from defining BOOST_DISABLE_ABI_HEADERS when compiling boost? From the boost file: boost_1_37_0\boost\config\user.hpp // BOOST_DISABLE_ABI_HEADERS: Stops boost headers from in...
Selfrighteous asked 4/1, 2009 at 13:38

9

Solved

I have a C++ program representing a TCP header as a struct: #include "stdafx.h" /* TCP HEADER 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+...
Exploiter asked 29/9, 2008 at 18:21

© 2022 - 2024 — McMap. All rights reserved.