• Register
First time here? Checkout the FAQ!
Welcome to Find4Answers.com

Where you can Ask Questions, Find Answers Or Receive Answers from other members of the community And Share in Social networking sites like facebook, linkedin, twitter.
3cx phone system assignment writing service bandar bola best waikiki restaurants boiler business car car insurance quotes car insurance quotes car insurance quotes car lease deals car leasing uk chwilówka przez internet zapewne company convey convey law complaints convey law reviews convey law service conveylaw cosmetic dentist csr classics hack csr classics hack csr classics hack data data recovery maidenhead deals design development double glazing leeds electrician electrician manchester electricians emergency farm filmy bez limitu filmy online finlock finlock solutions general genral golf holidays spain graduate jobs in london graduate jobs london heap how to jump higher how to jump higher how to jump higher infrared sauna infrared sauna saunas inline skating java judi bola law law firm in leeds lease leasing led lights led bulbs leeds legal smoke life insurance quotes log london manchester mercedes lease deals mercedes leasing mezzanine movies museums and art nikogo szybka chwilówka none none none ny male revue outsource link building paid search agency performance car hire personal personal injury lawyer porcelain veneers ramię szybkie chwilówki recovery restaurant seo seo agencies seo company seo company london seo las vegas seo services services sky diamond seo solutions steel synchronization szybka chwilówka przykład szybka chwilówka żaden szybkie chwilówki lekko temp cover car insurance temp cover car insurance temp cover car insurance thread tymczasem chwilówki przez internet upvc windows manchester viagra kamagra videos vinyl flooring suppliers wait web development company window repairs london windows zobaczyć szybka chwilówka

Can any one design algorithim for the below scenario.

0 votes
Write a method which will tell me the efficinent order of a matrix (X*Y),  where i can store n elements. Following the condition,

1. After storing n elements in that matrix, it should not have more than 2 empty spaces/blocks left.

2. the order/size of the matrix should  be nearer to a square matrix size. i.e. try to create the matrix, either of square matrix or a rectagonal matrix but nearer to a square matrix.


For n=4, X=2, Y=2

For n=23, X=5, Y=5

For n=22, X=4, Y=6 or X=6, Y=4

For n=21, X=3, Y=7 or X=7, Y=3
asked Dec 20, 2011 in Programming by sarada Hot Users (2,340 points)
Looking for an answer?  Share this question:     

Please log in or register to answer this question.

Related questions

0 votes
0 answers 72 views
0 votes
0 answers 70 views
0 votes
0 answers 69 views
0 votes
0 answers 66 views