Click here to Skip to main content
15,881,559 members
Home / Discussions / Algorithms
   

Algorithms

 
AnswerRe: Trying to get additions, deletions and changes between 2 file versions Pin
Peter_in_278026-Sep-16 17:41
professionalPeter_in_278026-Sep-16 17:41 
GeneralRe: Trying to get additions, deletions and changes between 2 file versions Pin
Christopher Cote5-Dec-16 3:12
Christopher Cote5-Dec-16 3:12 
QuestionCompress items of size based on width and height Pin
jkirkerx20-Sep-16 13:59
professionaljkirkerx20-Sep-16 13:59 
SuggestionRe: Compress items of size based on width and height Pin
Maciej Los26-Sep-16 4:44
mveMaciej Los26-Sep-16 4:44 
AnswerRe: Compress items of size based on width and height Pin
Maciej Los26-Sep-16 12:01
mveMaciej Los26-Sep-16 12:01 
GeneralRe: Compress items of size based on width and height Pin
jkirkerx27-Sep-16 7:46
professionaljkirkerx27-Sep-16 7:46 
QuestionRe: Compress items of size based on width and height [Modified] Pin
Maciej Los27-Sep-16 8:39
mveMaciej Los27-Sep-16 8:39 
AnswerRe: Compress items of size based on width and height [Modified] Pin
jkirkerx27-Sep-16 10:42
professionaljkirkerx27-Sep-16 10:42 
I have no clue how to paste in my Linked In link, tried many times.

I actually have that sample code above working better now.

If your curious about the program ....

This is the code packaged in a console app in VS2015
There is a class called sample data, that you can remove the remarks to load extra data
In the main class, you can unmark data to load.
It outputs packages in the console. In the real program, those packages will be submitted to UPS for a rate quote, and be packaged in the packages XML section and looped around for a single multi-package quote.

The rules are long items will be shipped seperate
Isolated items are items that will ship in the Original box, slap a sticker on them
Common items are the rest of the stuff that will be tossed in a box
If items trigger the Large Package Indicator, then start a new package to save the customer money.
Ar last, see if we can further combine packages to keep the count down.

Dropbox - RTST Rev 2016092701.zip[^]

I'm not trying to get someone to do my work for me, I'm just having trouble wrapping my head around this.

I use to just add up all the mass until a package is created, then cube the mass into a square. But that failed for long items from 6FT to 8Ft long.

And it failed for isolated items as well.

Thin items are tough, I was doing thin separate, but have now combined them into common.

[edit]
This is a clean copy of the program, in which I started again today. I put the thin items back in and will try to streamline the packaging, see Rev5 class comments.

Dropbox - RTSR_Console 3.zip[^]

modified 28-Sep-16 2:03am.

GeneralRe: Compress items of size based on width and height [Modified] Pin
Maciej Los27-Sep-16 21:41
mveMaciej Los27-Sep-16 21:41 
GeneralRe: Compress items of size based on width and height [Modified] Pin
jkirkerx28-Sep-16 6:36
professionaljkirkerx28-Sep-16 6:36 
GeneralThis is what I released today for production testing Pin
jkirkerx30-Sep-16 7:26
professionaljkirkerx30-Sep-16 7:26 
GeneralRe: This is what I released today for production testing Pin
Maciej Los4-Oct-16 9:22
mveMaciej Los4-Oct-16 9:22 
GeneralRe: This is what I released today for production testing Pin
jkirkerx4-Oct-16 9:30
professionaljkirkerx4-Oct-16 9:30 
GeneralRe: This is what I released today for production testing Pin
Maciej Los4-Oct-16 9:34
mveMaciej Los4-Oct-16 9:34 
GeneralRe: This is what I released today for production testing Pin
jkirkerx4-Oct-16 9:37
professionaljkirkerx4-Oct-16 9:37 
QuestionJoin lines text file using binary difference Pin
muttleychess1-Sep-16 5:34
muttleychess1-Sep-16 5:34 
AnswerRe: Join lines text file using binary difference Pin
Gerry Schmitz1-Sep-16 6:13
mveGerry Schmitz1-Sep-16 6:13 
GeneralRe: Join lines text file using binary difference Pin
muttleychess1-Sep-16 6:38
muttleychess1-Sep-16 6:38 
GeneralRe: Join lines text file using binary difference Pin
Gerry Schmitz1-Sep-16 6:50
mveGerry Schmitz1-Sep-16 6:50 
GeneralRe: Join lines text file using binary difference Pin
muttleychess1-Sep-16 7:49
muttleychess1-Sep-16 7:49 
GeneralRe: Join lines text file using binary difference Pin
Gerry Schmitz1-Sep-16 8:43
mveGerry Schmitz1-Sep-16 8:43 
QuestionConsesus algorithms Raft and Paxos comparison question Pin
Member 1270735628-Aug-16 1:40
Member 1270735628-Aug-16 1:40 
AnswerRe: Consesus algorithms Raft and Paxos comparison question Pin
Richard MacCutchan28-Aug-16 1:45
mveRichard MacCutchan28-Aug-16 1:45 
GeneralRe: Consesus algorithms Raft and Paxos comparison question Pin
Member 1270735628-Aug-16 3:14
Member 1270735628-Aug-16 3:14 
QuestionTranslating this flowchart into pseudocode Pin
Ambus Dondon26-Aug-16 18:47
Ambus Dondon26-Aug-16 18:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.