mrinmoy_2003's blog

By mrinmoy_2003, history, 7 hours ago, In English

I want to start off by saying that I don't know the solution to this. I wanted to start a discussion from others about what ideas they have to solve it. Also I couldn't find about this anywhere else on the internet so thats why I'm asking this here. Please don't be mad at me if its a bad question.

So there's the 0/1 knapsack problem where you maximize the profit. Thats cool but theres only one sack. What if theres more than one sack? Everything else is the same. A bunch of objects with some weight and profit, bags with some weight limit (all bags have same weight limit), and you can only, either take an object or leave it. You can't break it up into different bags or only take fractions of it or anything like that.

Any ideas are welcome.

The only approach I can think of is just try out all the permutations of the object list and insert them ony by one into the bags till they fill up then move on to the next bag.

If this problem is too difficult you can also assume that profit from all objects is the same ,i.e., one. (I added this constraint because I came across a problem somewhere and that perfectly fit into this type of problem where profit from all objects was same. That's how i started wondering about this topic).

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it

By mrinmoy_2003, history, 9 months ago, In English

What i wanna do?

Copy code from my editor, go to 'SUBMIT' tab, paste it, click Submit button.

Whats the problem?

I don't wanna use my mouse or my touchpad to do this. I can go upto pasting the source code by pressing 'Tab' (It goes to the next interact-able item on a webpage), but once there 'Tab' just adds space in my code, it doesn't select the 'Submit' button. I have to use my mouse for that.

Solutions?

I was wondering if its possible to add a shortcut to press the submit button via a custom made extension. Is it? Or in any other way?

Why I wanna do it?

Because it would make me feel cooler.

Relevant Info maybe:

I'm running Ubuntu on a lenovo laptop. I use brave and firefox.

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it